/* ═══════════════════════════════════════════════════════════════════════
   auth.css — Registration/Login/OTP/status screens.

   MOBILE (< 1024px): matches the provided screenshots almost exactly —
   full-bleed cream gradient header block, form directly below, single
   column, big pill buttons.

   DESKTOP (>= 1024px): deliberately NOT a scaled-up phone screen. A
   normal website auth layout — centered card, max-width, two-panel split
   with a brand/marketing panel on the left. This is the core ask: "less
   like a mobile app on bigger screens... more like a website."
   ═══════════════════════════════════════════════════════════════════════ */

.auth-body {
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
}

/* ── Brand panel — desktop only ── */
.auth-brand-panel {
    display: none;
}

/* ── Form panel ── */
.auth-panel {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.auth-card {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE / TABLET (< 1024px) — matches the screenshots
   ═══════════════════════════════════════════════════════════════════════ */

.auth-panel {
    background: var(--ll-cream-gradient);
    padding: 20px 20px 40px;
}

.auth-card {
    max-width: 480px;
}

/* ═══════════════════════════════════════════════════════════════════════
   DESKTOP (>= 1024px) — real website layout
   ═══════════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
    .auth-shell {
        background: var(--ll-bg);
    }

    .auth-brand-panel {
        display: flex;
        align-items: center;
        /* justify-content: center; */
        padding: 0 40px;
        width: 42%;
        min-width: 420px;
        background: #fff;
        /* background: linear-gradient(160deg, var(--ll-primary) 0%, var(--ll-primary-dark) 100%); */
        flex-shrink: 0;
    }

    .auth-brand-panel__inner {
        max-width: 380px;
        /* padding: 0 48px; */
    }
.ll-auth-brand-mark img{
    width: 100%;margin-left: -20px;
}
    .auth-brand-panel__logo {
        display: block;
        font-size: 28px;
        font-weight: 800;
        color: var(--ll-ink);
        margin-bottom: 6px;
    }

    .auth-brand-panel__tag {
        display: inline-block;
        font-size: 22px;
        font-weight: 700;
        /* text-transform: uppercase; */
        letter-spacing: 0.06em;
        color: #000;
        margin-bottom: 24px;
    }

    .auth-brand-panel__copy {
        font-size: 16px;
        line-height: 1.6;
          color: #000;
        margin: 0;
    }

    /* Form panel becomes a plain neutral background, centered card —
       no cream gradient (that's a mobile "app screen" treatment). */
    .auth-panel {
        background:#fff;
        /* background: var(--ll-bg); */
        align-items: center;
        padding: 48px;
    }

    .auth-card {
        max-width: 420px;
        background: var(--ll-surface);
        /* border: 0.5px solid var(--ll-border); */
        border-radius: var(--ll-radius-lg);
        /* box-shadow: var(--ll-shadow-lg); */
        padding: 40px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   Shared auth content styles (both breakpoints)
   ═══════════════════════════════════════════════════════════════════════ */

.auth-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.auth-header__back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ll-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ll-shadow-sm);
    flex-shrink: 0;
    color: var(--ll-ink);
}
.auth-header__back .ll-icon {
    transform: rotate(180deg);
    width: 16px;
    height: 16px;
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    margin: 4px 0 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--ll-ink-soft);
    margin: 0 0 28px;
    line-height: 1.5;
}

.auth-form .ll-field { margin-bottom: 18px; }

.auth-password-field {
    position: relative;
}
.auth-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ll-ink-faint);
    display: flex;
    align-items: center;
}
.auth-password-toggle .ll-icon {
    width: 18px;
    height: 18px;
    background-color: var(--ll-ink-faint);
}

/* Phone input row: country dropdown + number */
.auth-phone-row {
    display: flex;
    gap: 8px;
}

.auth-phone-code-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid var(--ll-border);
    border-radius: var(--ll-radius-sm);
    background: var(--ll-surface);
    flex-shrink: 0;
    min-width: 92px;
}
.auth-phone-code-btn img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.auth-phone-code-btn span { font-size: 14px; font-weight: 600; }

.auth-phone-row .ll-input { flex: 1; }

/* Remember me + forgot password row */
.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ll-ink-soft);
}

.auth-forgot {
    color: var(--ll-primary);
    font-weight: 600;
}

.auth-footer-link {
    text-align: center;
    font-size: 13px;
    color: var(--ll-ink-soft);
    margin-top: 20px;
}
.auth-footer-link a {
    color: var(--ll-primary);
    font-weight: 700;
}

/* ── OTP input boxes ── */
.otp-boxes {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.otp-box {
    width: 46px;
    height: 54px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 1px solid var(--ll-border);
    border-radius: var(--ll-radius-sm);
    background: var(--ll-surface);
}
.otp-box:focus {
    border-color: var(--ll-primary);
    outline: none;
}
.otp-box.is-filled {
    border-color: var(--ll-primary);
}

.otp-resend {
    font-size: 13px;
    color: var(--ll-ink-soft);
    margin-bottom: 28px;
}
.otp-resend a, .otp-resend button {
    color: var(--ll-primary);
    font-weight: 700;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
}
.otp-resend button:disabled {
    color: var(--ll-ink-faint);
    cursor: not-allowed;
}

/* Dev-mode OTP display — clearly marked, not styled to look "real" */
.otp-dev-banner {
    background: var(--ll-warning-tint);
    color: var(--ll-warning);
    border-radius: var(--ll-radius-sm);
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* ── Progress bar (3 segments, registration steps) ── */
.auth-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
}
.auth-progress__segment {
    flex: 1;
    height: 4px;
    border-radius: var(--ll-radius-pill);
    background: var(--ll-border);
}
.auth-progress__segment.is-complete {
    background: var(--ll-primary);
}

/* ── Upload boxes ── */
.upload-box {
    border: 1px dashed var(--ll-border);
    border-radius: var(--ll-radius-md);
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 16px;
    background: var(--ll-surface);
}
.upload-box.has-file {
    border-style: solid;
    border-color: var(--ll-primary);
    background: var(--ll-primary-tint);
}
.upload-box__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ll-primary-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.upload-box__icon .ll-icon { width: 18px; height: 18px; background-color: var(--ll-primary); }
.upload-box__label {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
}
.upload-box__hint {
    font-size: 12px;
    color: var(--ll-ink-faint);
    margin: 0;
}
.upload-box__filename {
    font-size: 13px;
    font-weight: 600;
    color: var(--ll-primary);
    margin: 0;
    word-break: break-all;
}

.upload-note {
    display: flex;
    gap: 10px;
    background: var(--ll-info-tint);
    border-radius: var(--ll-radius-sm);
    padding: 12px 14px;
    margin-bottom: 20px;
}
.upload-note .ll-icon {
    width: 16px;
    height: 16px;
    background-color: var(--ll-info);
    flex-shrink: 0;
    margin-top: 2px;
}
.upload-note p {
    font-size: 12px;
    color: var(--ll-info);
    margin: 0;
    line-height: 1.5;
}

/* ── Status screens (submitted / pending / rejected / approved) ── */
.auth-status-screen {
    text-align: center;
    padding-top: 12px;
}

.auth-status-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
}
.auth-status-icon--success { background: var(--ll-success-tint); color: var(--ll-success); }
.auth-status-icon--pending { background: var(--ll-warning-tint); color: var(--ll-warning); }
.auth-status-icon--danger  { background: var(--ll-danger-tint); color: var(--ll-danger); }

.auth-status-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
}

.auth-status-message {
    font-size: 14px;
    color: var(--ll-ink-soft);
    line-height: 1.6;
    margin: 0 0 28px;
}

.auth-status-card {
    text-align: left;
    background: var(--ll-bg);
    border-radius: var(--ll-radius-md);
    padding: 16px 18px;
    margin-bottom: 20px;
}
.auth-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
}
.auth-status-row + .auth-status-row {
    border-top: 1px solid var(--ll-border);
}
.auth-status-row__label { color: var(--ll-ink-soft); }
.auth-status-row__value { font-weight: 700; }

.auth-status-note {
    background: var(--ll-info-tint);
    color: var(--ll-info);
    border-radius: var(--ll-radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.auth-status-success-note {
    background: var(--ll-success-tint);
    color: var(--ll-success);
    border-radius: var(--ll-radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 32px;
}
