/* ═══════════════════════════════════════════════
   AUTH PAGES CSS — Login, Forgot Password
   Form on right, branding on left
   ═══════════════════════════════════════════════ */

:root {
    --auth-primary: var(--brand-primary, #00758f);
    --auth-secondary: var(--brand-secondary, #1e3a5f);
}

body.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Header ─────────────────────────────────── */
.auth-header {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
.auth-header-logo {
    height: 32px;
    width: auto;
}
.auth-header-text {
    font-weight: 700;
    font-size: .95rem;
    color: #1e293b;
}

/* ─── Main Container ─────────────────────────── */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.auth-wrapper {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
    overflow: hidden;
}

/* ─── Left Panel (branding) ──────────────────── */
.auth-left {
    flex: 1;
    background: linear-gradient(135deg, var(--auth-secondary) 0%, var(--auth-primary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: #fff;
    text-align: center;
}
.auth-left-logo {
    max-height: 60px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}
.auth-left h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 .5rem;
}
.auth-left p {
    font-size: .82rem;
    opacity: .8;
    line-height: 1.6;
    max-width: 260px;
}
.auth-left-features {
    margin-top: 1.5rem;
    text-align: left;
    font-size: .78rem;
    opacity: .85;
}
.auth-left-features li {
    padding: .3rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.auth-left-features li i {
    font-size: .7rem;
    opacity: .7;
}

/* ─── Right Panel (form) ─────────────────────── */
.auth-right {
    flex: 1;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-form-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 .3rem;
}
.auth-form-sub {
    font-size: .82rem;
    color: #64748b;
    margin: 0 0 1.5rem;
}

/* ─── Form Fields ────────────────────────────── */
.auth-field {
    margin-bottom: 1.1rem;
}
.auth-field label {
    display: block;
    font-size: .76rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: .35rem;
}
.auth-field .field-wrap {
    position: relative;
}
.auth-field input {
    width: 100%;
    padding: .6rem .9rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: .85rem;
    font-family: inherit;
    background: #fff;
    color: #1e293b;
    transition: border-color .15s, box-shadow .15s;
}
.auth-field input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-primary) 12%, transparent);
}
.auth-field input::placeholder {
    color: #94a3b8;
}

/* Password eye toggle */
.auth-field .toggle-password {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: .85rem;
    padding: .2rem;
    transition: color .12s;
}
.auth-field .toggle-password:hover {
    color: var(--auth-primary);
}

/* ─── Submit Button ──────────────────────────── */
.auth-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--auth-primary), color-mix(in srgb, var(--auth-primary) 80%, #000));
    border: none;
    color: #fff;
    padding: .7rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    margin-top: .5rem;
}
.auth-submit:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--auth-primary) 85%, #000), var(--auth-secondary));
    transform: translateY(-1px);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--auth-primary) 30%, transparent);
}

/* ─── Links ──────────────────────────────────── */
.auth-links {
    margin-top: 1rem;
    text-align: center;
    font-size: .78rem;
}
.auth-links a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}
.auth-links a:hover {
    text-decoration: underline;
}

/* ─── Alert ──────────────────────────────────── */
.auth-alert {
    padding: .6rem .85rem;
    border-radius: 8px;
    font-size: .8rem;
    margin-bottom: 1rem;
}
.auth-alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.auth-alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ─── Footer ─────────────────────────────────── */
.auth-footer {
    background: #eaecef;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
}
.auth-footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.auth-footer-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}
.auth-footer-brand img {
    height: 22px;
    width: auto;
}
.auth-footer-brand span {
    font-weight: 700;
    font-size: .82rem;
    color: #1e293b;
}
.auth-footer-address {
    font-size: .72rem;
    color: #64748b;
    line-height: 1.7;
}
.auth-footer-address i {
    width: 14px;
    text-align: center;
    margin-right: .3rem;
    color: #94a3b8;
}
.auth-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.auth-footer-links-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    margin-bottom: .4rem;
}
.auth-footer-links li {
    padding: .2rem 0;
}
.auth-footer-links a {
    font-size: .75rem;
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.auth-footer-links a:hover {
    color: var(--auth-primary);
}
.auth-footer-links a i {
    font-size: .65rem;
    opacity: .6;
}
.auth-footer-bottom {
    max-width: 900px;
    margin: 1rem auto 0;
    padding-top: .75rem;
    border-top: 1px solid #d1d5db;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .7rem;
    color: #64748b;
}
.auth-footer-badge {
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: .65rem;
    border: 1px solid #e2e8f0;
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
    .auth-left {
        padding: 2rem;
        min-height: auto;
    }
    .auth-left-features { display: none; }
    .auth-right { padding: 2rem 1.5rem; }
    .auth-footer-inner { flex-direction: column; gap: 1rem; }
}
