
/* ─── AUTH LAYOUT ─── */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 65px; /* navbar height */
}

/* ─── LEFT PANEL (Brand Side) ─── */
.auth-left {
    background: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5%;
    position: relative;
    overflow: hidden;
}
.auth-left::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(232,101,26,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(212,168,67,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.auth-left-content { position: relative; z-index: 1; }

.auth-brand-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; font-weight: 900;
    color: var(--cream);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 3rem;
}
.auth-brand-logo span { color: var(--saffron); }

.auth-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 900;
    color: var(--cream);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}
.auth-left h2 em { color: var(--saffron); font-style: italic; }

.auth-left p {
    color: rgba(245,240,232,0.55);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
    max-width: 380px;
    margin-bottom: 3rem;
}

.auth-perks { display: flex; flex-direction: column; gap: 1rem; }
.auth-perk {
    display: flex; align-items: center; gap: 1rem;
}
.perk-icon {
    width: 40px; height: 40px;
    background: rgba(212,168,67,0.15);
    border: 1px solid rgba(212,168,67,0.3);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.perk-text strong {
    display: block;
    color: var(--cream);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}
.perk-text span {
    color: rgba(245,240,232,0.45);
    font-size: 0.78rem;
}

/* ─── RIGHT PANEL (Form Side) ─── */
.auth-right {
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 5%;
}

.auth-form-box {
    width: 100%;
    max-width: 420px;
}

.auth-form-header { margin-bottom: 2rem; }
.auth-form-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.5px;
    margin-bottom: 0.4rem;
}
.auth-form-header p {
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 400;
}
.auth-form-header p a {
    color: var(--saffron);
    font-weight: 600;
    text-decoration: none;
}
.auth-form-header p a:hover { text-decoration: underline; }

/* ─── FORM FIELDS ─── */
.form-group {
    margin-bottom: 1.2rem;
}
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.45rem;
    letter-spacing: 0.02em;
}
.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1.5px solid #e0dbd2;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
}
.form-input:focus,
.form-select:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(232,101,26,0.1);
}
.form-input.is-invalid,
.form-select.is-invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229,62,62,0.08);
}
.form-input::placeholder { color: #b5b0a8; }

/* Select arrow */
.select-wrapper { position: relative; }
.select-wrapper::after {
    content: '▾';
    position: absolute; right: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    font-size: 0.85rem;
}

/* Password toggle */
.input-wrapper { position: relative; }
.toggle-password {
    position: absolute; right: 0.9rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer; color: var(--muted);
    font-size: 1rem; padding: 0;
    transition: color 0.2s;
}
.toggle-password:hover { color: var(--ink); }

/* Error message */
.field-error {
    font-size: 0.78rem;
    color: #e53e3e;
    margin-top: 0.35rem;
    display: flex; align-items: center; gap: 0.3rem;
}
.field-error::before { content: '⚠ '; }

/* Role selector cards */
.role-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-top: 0.45rem;
}
.role-option { display: none; }
.role-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem 0.5rem;
    border: 1.5px solid #e0dbd2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    text-align: center;
}
.role-label:hover { border-color: var(--saffron); }
.role-label .role-emoji { font-size: 1.4rem; }
.role-label .role-text  {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.role-option:checked + .role-label {
    border-color: var(--saffron);
    background: rgba(232,101,26,0.06);
}
.role-option:checked + .role-label .role-text { color: var(--saffron); }

/* Remember / Forgot */
.form-row {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.checkbox-label {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.83rem; color: var(--muted);
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: var(--saffron);
    cursor: pointer;
}
.forgot-link {
    font-size: 0.83rem; font-weight: 600;
    color: var(--saffron); text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

/* ─── SUBMIT BUTTON ─── */
.btn-auth {
    width: 100%;
    padding: 0.9rem;
    background: var(--ink);
    color: var(--cream);
    border: none; border-radius: 6px;
    font-size: 0.95rem; font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s;
    position: relative; overflow: hidden;
}
.btn-auth:hover { background: var(--saffron); }
.btn-auth:active { transform: scale(0.99); }

/* ─── DIVIDER ─── */
.auth-divider {
    display: flex; align-items: center; gap: 1rem;
    margin: 1.5rem 0;
    color: var(--muted); font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0dbd2;
}

/* ─── ALERT (Server-side errors) ─── */
.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.83rem;
    margin-bottom: 1.2rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.auth-alert-error {
    background: #fef0ed;
    border: 1px solid #f5bfb0;
    color: #b83c1e;
}
.auth-alert-success {
    background: #e6f9f1;
    border: 1px solid #b2e8cf;
    color: #1a7a4a;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-left  { display: none; }
    .auth-right { padding: 2rem 1.5rem; }
}