/* ===== AUTH PAGES – PREMIUM SPLIT-SCREEN LAYOUT ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background: #0a0a1a;
    overflow-x: hidden;
}

/* ── Split Layout ── */
.auth-split {
    display: flex;
    min-height: 100vh;
}

/* ── LEFT: Slideshow Panel ── */
.auth-showcase {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.auth-showcase .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    z-index: 1;
}

.auth-showcase .slide.active { opacity: 1; }

.auth-showcase .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10, 10, 26, 0.3) 0%,
        rgba(10, 10, 26, 0.65) 50%,
        rgba(10, 10, 26, 0.92) 100%);
    z-index: 2;
}

.showcase-content {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: 480px;
}

.showcase-content .tagline {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 1rem;
}

.showcase-content h2 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.showcase-content h2.visible {
    opacity: 1;
    transform: translateY(0);
}

.showcase-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Slide indicators */
.slide-indicators {
    display: flex;
    gap: 8px;
}

.slide-indicators span {
    width: 32px;
    height: 3px;
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
    transition: all 0.5s ease;
    cursor: pointer;
}

.slide-indicators span.active {
    width: 48px;
    background: #d4af37;
}

/* ── RIGHT: Form Panel ── */
.auth-form-panel {
    flex: 0 0 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.5rem;
    background: #ffffff;
    position: relative;
    z-index: 5;
}

.auth-form-panel .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.auth-form-panel .brand img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.auth-form-panel .form-header h1 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-form-panel .form-header p {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* ── Form Fields ── */
.auth-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}

.auth-field input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px; /* 16px strictly prevents iOS auto-zoom */
    font-family: inherit;
    color: #1a1a2e;
    background: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
}

.auth-field input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
    background: #fff;
}

.auth-field input::placeholder {
    color: #a0aec0;
}

.auth-field .toggle-pw {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    transition: color 0.2s;
}

.auth-field .toggle-pw:hover { color: #667eea; }

/* ── Checkbox & Links Row ── */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    font-size: 0.85rem;
}

.auth-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
}

.auth-options label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    border-radius: 4px;
    cursor: pointer;
}

.auth-options a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-options a:hover { color: #5a67d8; }

/* ── Primary Button ── */
.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 18px rgba(102, 126, 234, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.5);
}

.btn-auth:active { transform: translateY(0); }

/* ── Divider ── */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.75rem 0;
    color: #a0aec0;
    font-size: 0.8rem;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span { padding: 0 1rem; }

/* ── Footer Link ── */
.auth-footer-link {
    text-align: center;
    font-size: 0.9rem;
    color: #718096;
    margin-top: 2rem;
}

.auth-footer-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.auth-footer-link a:hover { color: #5a67d8; text-decoration: underline; }

/* ── Trust Badges ── */
.trust-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.trust-badges .badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #718096;
    font-weight: 500;
}

.trust-badges .badge-item i {
    color: #667eea;
    font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .auth-split { flex-direction: column; }

    .auth-showcase {
        flex: none;
        min-height: 280px;
        padding: 2rem;
    }

    .showcase-content h2 { font-size: 1.6rem; }

    .auth-form-panel {
        flex: none;
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 576px) {
    .auth-showcase { min-height: 220px; padding: 1.5rem; }
    .showcase-content h2 { font-size: 1.3rem; }
    .auth-form-panel { padding: 2rem 1.25rem; }
    .trust-badges { flex-direction: column; gap: 0.75rem; }
}

/* ── Password Strength (register) ── */
.pw-strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.pw-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.pw-strength-text {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

/* ── Terms checkbox (register) ── */
.auth-terms {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.auth-terms label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: #4a5568;
    line-height: 1.5;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.auth-terms label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #667eea;
    flex-shrink: 0;
}

.auth-terms a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-terms a:hover { text-decoration: underline; }

/* ── Admin-specific dark variant ── */
body.auth-page.admin-auth .auth-form-panel {
    background: #0f0f23;
    color: #e2e8f0;
}

body.auth-page.admin-auth .auth-form-panel .form-header h1 { color: #fff; }
body.auth-page.admin-auth .auth-form-panel .form-header p { color: #94a3b8; }
body.auth-page.admin-auth .auth-field label { color: #94a3b8; }

body.auth-page.admin-auth .auth-field input {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: #f1f5f9;
}

body.auth-page.admin-auth .auth-field input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: rgba(255,255,255,0.08);
}

body.auth-page.admin-auth .auth-field input::placeholder { color: #64748b; }
body.auth-page.admin-auth .auth-options label { color: #94a3b8; }
body.auth-page.admin-auth .trust-badges { border-top-color: rgba(255,255,255,0.08); }
body.auth-page.admin-auth .trust-badges .badge-item { color: #94a3b8; }
body.auth-page.admin-auth .auth-footer-link { color: #94a3b8; }
