/* ============================================================
   IzzieShop clean authentication UI
   Public sign-in, sign-up and account-recovery pages.

   Solid colours only, generous spacing, one clear action per
   screen. This layer is scoped to .auth-page so it cannot leak
   into the storefront or the dashboards.
   ============================================================ */

:root {
    --auth-navy: #0e1f3a;
    --auth-navy-soft: #162b4d;
    --auth-green: #12a150;
    --auth-green-dark: #0d7d3e;
    --auth-gold: #e5b53c;
    --auth-bg: #f3f6fa;
    --auth-card: #ffffff;
    --auth-ink: #101828;
    --auth-muted: #667085;
    --auth-line: #e3e9f2;
    --auth-input: #fbfcfe;
    --auth-radius: 24px;
    --auth-shadow: 0 24px 60px rgba(14, 31, 58, 0.10);
}

.auth-page {
    min-height: 100vh;
    margin: 0;
    background: var(--auth-bg);
    color: var(--auth-ink);
    font-family: var(--izzie-font-body, 'Plus Jakarta Sans', 'Segoe UI', sans-serif);
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    min-height: 100vh;
}

/* ------------------------------------------------------------
   Brand panel
   ------------------------------------------------------------ */
.auth-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(28px, 4.5vw, 64px);
    background: var(--auth-navy);
    color: #ffffff;
}

.auth-visual::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -170px;
    top: -170px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    pointer-events: none;
}

.auth-visual::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    left: -130px;
    bottom: -120px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    pointer-events: none;
}

.auth-visual > * {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--izzie-font-logo, 'Syne', sans-serif);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.auth-brand:hover {
    color: #ffffff;
}

.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--auth-green);
    color: #ffffff;
    font-family: var(--izzie-font-display, 'Sora', sans-serif);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.auth-brand small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--izzie-font-body, sans-serif);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-visual-copy {
    max-width: 540px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #d8f5e4;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.auth-kicker i {
    color: var(--auth-gold);
}

.auth-visual h1 {
    margin: 22px 0 16px;
    color: #ffffff;
    font-family: var(--izzie-font-display, 'Sora', sans-serif);
    font-size: clamp(2rem, 3.1vw, 3.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.auth-visual-copy > p {
    max-width: 460px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
    line-height: 1.7;
}

.auth-points {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    font-weight: 500;
}

.auth-points i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(18, 161, 80, 0.18);
    color: #61e19a;
    font-size: 0.8rem;
}

.auth-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 520px;
}

.auth-proof-item {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.auth-proof-item strong {
    display: block;
    color: #ffffff;
    font-family: var(--izzie-font-display, 'Sora', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-proof-item span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.7rem;
    line-height: 1.35;
}

.auth-visual-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.72rem;
}

.auth-visual-foot a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 600;
}

.auth-visual-foot a:hover {
    color: #ffffff;
}

/* ------------------------------------------------------------
   Form panel
   ------------------------------------------------------------ */
.auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: clamp(22px, 4vw, 52px) 20px;
}

.auth-panel {
    box-sizing: border-box;
    width: 100%;
    max-width: 470px;
    padding: clamp(24px, 3.4vw, 38px);
    background: var(--auth-card);
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
}

.auth-panel-wide {
    max-width: 760px;
}

.auth-mobile-brand {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--auth-line);
}

.auth-mobile-brand .auth-brand {
    color: var(--auth-navy);
    font-size: 1.15rem;
}

.auth-mobile-brand .auth-brand:hover {
    color: var(--auth-navy);
}

.auth-mobile-brand .auth-brand small {
    color: var(--auth-muted);
}

.auth-mobile-brand .auth-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 0.86rem;
}

.auth-mobile-proof {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: -4px 0 18px;
}

.auth-mobile-proof span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 6px;
    background: #f4f8fb;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    color: #667085;
    font-size: 0.58rem;
    font-weight: 700;
    text-align: center;
}

.auth-mobile-proof i {
    color: var(--auth-green);
    font-size: 0.68rem;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--auth-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-back:hover {
    color: var(--auth-navy);
}

.auth-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-role-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--auth-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-role-label i {
    color: var(--auth-green);
    font-size: 0.9rem;
}

/* Shop / Sell switch */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    background: #f2f5f9;
    border: 1px solid #e8edf4;
    border-radius: 12px;
}

.auth-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    border-radius: 9px;
    color: #667085;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.auth-tab:hover {
    color: var(--auth-navy);
}

.auth-tab.is-active {
    background: #ffffff;
    color: var(--auth-navy);
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08);
}

.auth-tab i {
    font-size: 0.9rem;
}

.auth-tab.is-active i {
    color: var(--auth-green);
}

/* Heading */
.auth-header {
    margin-bottom: 24px;
}

.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 15px;
    border-radius: 13px;
    background: #eaf8ef;
    color: var(--auth-green);
    font-size: 1.15rem;
}

.auth-header h2 {
    margin: 0 0 7px;
    color: var(--auth-navy);
    font-family: var(--izzie-font-display, 'Sora', sans-serif);
    font-size: clamp(1.45rem, 2.2vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.auth-header p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Social */
.auth-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #d9e1ec;
    border-radius: 12px;
    color: #344054;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-social:hover {
    background: #f8fafc;
    border-color: #c4d0e0;
    color: var(--auth-navy);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}

.auth-social svg {
    flex: 0 0 auto;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #98a2b3;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-line);
}

/* Forms */
.auth-page .auth-form .form-label,
.auth-page .form-label {
    margin-bottom: 7px;
    color: #344054;
    font-size: 0.78rem;
    font-weight: 700;
}

.auth-page .form-control,
.auth-page .form-select {
    box-sizing: border-box;
    min-height: 48px;
    padding: 0.68rem 0.9rem;
    background-color: var(--auth-input);
    border: 1px solid #d9e2ec;
    border-radius: 11px;
    color: var(--auth-ink);
    font-size: 0.88rem;
    box-shadow: none;
}

.auth-page textarea.form-control {
    min-height: 84px;
}

.auth-page .form-control::placeholder {
    color: #a2acbb;
}

.auth-page .form-control:focus,
.auth-page .form-select:focus {
    background-color: #ffffff;
    border-color: var(--auth-green);
    box-shadow: 0 0 0 4px rgba(18, 161, 80, 0.10);
}

.auth-page .input-group > .form-control,
.auth-page .input-group > .form-select {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.auth-page .input-group > .form-control:first-child,
.auth-page .input-group > .form-select:first-child {
    border-radius: 11px;
}

.auth-page .input-group-text {
    box-sizing: border-box;
    min-width: 46px;
    justify-content: center;
    background: #eef3f8;
    border: 1px solid #d9e2ec;
    border-right: 0;
    border-radius: 11px 0 0 11px;
    color: #667085;
    font-size: 0.9rem;
}

.auth-page .form-control.is-invalid,
.auth-page .form-select.is-invalid {
    border-color: #d92d20;
    box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.08);
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .form-control {
    padding-right: 48px;
}

.auth-eye {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #667085;
}

.auth-eye:hover {
    background: #eef3f8;
    color: var(--auth-navy);
}

.auth-page .form-check-input {
    width: 17px;
    height: 17px;
    margin-top: 0.2em;
    border-color: #c8d2df;
}

.auth-page .form-check-input:checked {
    background-color: var(--auth-green);
    border-color: var(--auth-green);
}

.auth-page .form-check-label {
    color: #475467;
    font-size: 0.8rem;
}

.auth-page .form-text,
.auth-page small.text-muted {
    color: var(--auth-muted) !important;
    font-size: 0.74rem;
    line-height: 1.5;
}

.auth-page .form-text ul {
    padding-left: 1.1rem;
}

.auth-page a {
    color: var(--auth-green-dark);
}

.auth-page a:hover {
    color: var(--auth-navy);
}

/* Buttons */
.auth-page .btn {
    min-height: 44px;
    border-radius: 11px;
    font-size: 0.86rem;
    font-weight: 700;
}

.auth-page .btn-primary,
.auth-page .auth-submit {
    background: var(--auth-green);
    border: 1px solid var(--auth-green);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(18, 161, 80, 0.20);
}

.auth-page .btn-primary:hover,
.auth-page .auth-submit:hover {
    background: var(--auth-green-dark);
    border-color: var(--auth-green-dark);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(13, 125, 62, 0.24);
}

.auth-page .btn-outline-secondary {
    border-color: #d9e1ec;
    color: #475467;
    background: #ffffff;
}

.auth-page .btn-outline-secondary:hover {
    background: #f2f5f9;
    border-color: #c4d0e0;
    color: var(--auth-navy);
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    font-size: 0.9rem;
}

/* Alerts */
.auth-page .alert {
    padding: 0.8rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 0.8rem;
    line-height: 1.55;
}

.auth-page .alert-danger {
    background: #fef3f2;
    border-color: #fecdca;
    color: #912018;
}

.auth-page .alert-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #05603a;
}

.auth-page .alert-info {
    background: #eff8ff;
    border-color: #b9e6fe;
    color: #175cd3;
}

.auth-page .alert-warning {
    background: #fffaeb;
    border-color: #fedf89;
    color: #93370d;
}

/* Footer of the form */
.auth-switch {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--auth-line);
    color: var(--auth-muted);
    font-size: 0.8rem;
    text-align: center;
}

.auth-switch a {
    font-weight: 700;
    text-decoration: none;
}

.auth-footer-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    color: #98a2b3;
    font-size: 0.7rem;
    line-height: 1.55;
}

.auth-footer-note i {
    margin-top: 1px;
    color: var(--auth-green);
}

.auth-most-important {
    margin-top: 20px;
    padding: 15px;
    background: #f7fafc;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    color: #475467;
    font-size: 0.75rem;
    line-height: 1.6;
}

.auth-most-important strong {
    color: var(--auth-navy);
}

.auth-copyright {
    margin: 0;
    color: #98a2b3;
    font-size: 0.68rem;
    text-align: center;
}

.auth-copyright strong {
    color: #667085;
}

/* Seller registration form uses Bootstrap rows inside a wider card. */
.auth-panel-wide .auth-divider {
    margin: 22px 0;
}

.auth-panel-wide hr {
    border-color: var(--auth-line);
    opacity: 1;
}

.auth-panel-wide h5,
.auth-panel-wide h4 {
    color: var(--auth-navy);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .auth-visual {
        display: none;
    }

    .auth-main {
        min-width: 0;
        min-height: 100vh;
        justify-content: flex-start;
        padding: 22px 16px 32px;
    }

    .auth-panel {
        width: 100%;
        min-width: 0;
        max-width: 560px;
        border-radius: 20px;
        box-shadow: 0 12px 36px rgba(14, 31, 58, 0.08);
    }

    .auth-panel-wide {
        max-width: 100%;
    }

    .auth-page .auth-form,
    .auth-page form,
    .auth-page .row,
    .auth-page .input-group {
        min-width: 0;
    }

    .auth-page .form-control,
    .auth-page .form-select {
        width: 100%;
        min-width: 0;
    }

    .auth-mobile-brand {
        display: flex;
    }

    .auth-mobile-proof {
        display: grid;
    }
}

@media (max-width: 575.98px) {
    .auth-panel {
        padding: 20px 17px;
        border-radius: 18px;
    }

    .auth-header {
        margin-bottom: 20px;
    }

    .auth-icon {
        width: 40px;
        height: 40px;
    }

    .auth-social {
        min-height: 46px;
        font-size: 0.8rem;
    }

    .auth-tabs {
        margin-bottom: 20px;
    }

    .auth-page .form-control,
    .auth-page .form-select {
        min-height: 46px;
        font-size: 0.84rem;
    }
}
