﻿/**
 * DCare app shell essentials (from RBS main.css)
 */
body.app-body, body.auth-body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background: var(--color-page);
  min-height: 100vh;
}
.auth-body { background: #f4f6fb; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.profile-menu__link { display: block; text-decoration: none; color: inherit; cursor: pointer; }

.profile-menu { position: relative; }
.profile-menu__trigger {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary-600);
    color: #fff;
    font-weight: 700;
}
.profile-menu__dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-dropdown);
    padding: 8px;
}
.profile-menu.is-open .profile-menu__dropdown { display: block; }
.profile-menu__name {
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
}
.profile-menu__item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px;
    border-radius: var(--radius-sm);
}
.profile-menu__item:hover { background: var(--color-primary-50); }

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 520px);
}

.auth-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 5vw, 64px);
    background:
        radial-gradient(circle at 20% 20%, rgba(106, 90, 205, 0.18), transparent 42%),
        radial-gradient(circle at 80% 10%, rgba(56, 173, 104, 0.12), transparent 35%),
        linear-gradient(145deg, #eef1ff 0%, #f8fbff 45%, #edf7f1 100%);
    border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.auth-hero__inner {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-height: 100%;
}

.auth-hero__brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.auth-hero__logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(106, 90, 205, 0.18);
    object-fit: cover;
}

.auth-hero__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #111827;
}

.auth-hero__tagline {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    max-width: 34rem;
}

.auth-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.auth-hero__pill--whatsapp { background: #d7f5e4; }
.auth-hero__pill--sms { background: #ffe8d6; }
.auth-hero__pill--social { background: #dbeafe; }
.auth-hero__pill--email { background: #ede9fe; }

.auth-hero__lead {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    max-width: 34rem;
}

.auth-illustration {
    position: relative;
    min-height: 280px;
    margin-top: 8px;
}

.auth-illustration__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
}

.auth-illustration__orb--1 {
    width: 180px;
    height: 180px;
    top: 10px;
    left: 12%;
    background: rgba(106, 90, 205, 0.12);
}

.auth-illustration__orb--2 {
    width: 120px;
    height: 120px;
    bottom: 20px;
    right: 10%;
    background: rgba(56, 173, 104, 0.14);
}

.auth-illustration__card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 118px;
    padding: 16px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.auth-illustration__card i {
    font-size: 1.6rem;
    color: #6a5acd;
}

.auth-illustration__card--main {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 150px;
    padding: 22px 18px;
}

.auth-illustration__card--main i {
    font-size: 2rem;
    color: #38ad68;
}

.auth-illustration__card--a { top: 18px; left: 8%; }
.auth-illustration__card--b { top: 24px; right: 6%; }
.auth-illustration__card--c { bottom: 16px; left: 18%; }

.auth-illustration--register .auth-illustration__card--a i { color: #2563eb; }
.auth-illustration--register .auth-illustration__card--b i { color: #d97706; }
.auth-illustration--register .auth-illustration__card--c i { color: #16a34a; }

.auth-main {
    display: grid;
    place-items: center;
    padding: clamp(24px, 4vw, 48px);
    background: #fff;
}

.auth-card {
    width: min(100%, 420px);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
    padding: clamp(24px, 4vw, 36px);
}

.auth-card__head {
    margin-bottom: 24px;
}

.auth-title {
    margin: 0 0 8px;
    font-size: 1.65rem;
    font-weight: 700;
    color: #111827;
}

.auth-subtitle {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.auth-form { display: grid; gap: 16px; }

.form-field label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.form-field label i {
    color: #6a5acd;
}

.form-field input {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 13px 14px;
    background: #fbfcfe;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus {
    outline: none;
    border-color: #6a5acd;
    box-shadow: 0 0 0 4px rgba(106, 90, 205, 0.12);
    background: #fff;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: 600;
}

.auth-info-panel {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.auth-info-panel i {
    font-size: 1.4rem;
    color: #6a5acd;
    margin-top: 2px;
}

.auth-info-panel p {
    margin: 0;
}

.auth-main .btn-primary {
    background: #6a5acd;
    border-color: #6a5acd;
}

.auth-main .btn-primary:hover {
    background: #5b4cc4;
    border-color: #5b4cc4;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.auth-footer a {
    color: #6a5acd;
    font-weight: 600;
    text-decoration: none;
}

