/* ===== Auth Page Layout ===== */
:root {
    --auth-bg: #1a1a2e;
    --auth-accent: #4f6ef7;
    --auth-accent-hover: #3b5bdb;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.auth-page {
    display: flex;
    min-height: 100vh;
}

/* Left panel - branding */
.auth-left {
    flex: 1;
    background: var(--auth-bg);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(79, 110, 247, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 48px;
}

.auth-brand i {
    font-size: 1.8rem;
    color: var(--auth-accent);
}

.auth-tagline h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.auth-tagline p {
    font-size: 1.05rem;
    color: #a8a8b8;
    line-height: 1.6;
    max-width: 420px;
}

.auth-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #c8c8d8;
    font-size: 0.95rem;
}

.auth-feature i {
    font-size: 1.1rem;
    color: var(--auth-accent);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* Right panel - form */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fb;
    padding: 40px;
}

.auth-form-container {
    width: 100%;
    max-width: 440px;
}

.auth-form-container h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.auth-form-container .auth-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* Form styling */
.auth-form .form-floating {
    margin-bottom: 16px;
}

.auth-form .form-control,
.auth-form .form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.92rem;
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}

.auth-form .form-floating > label {
    color: #6b7280;
    font-size: 0.9rem;
}

.auth-form .form-check {
    margin-bottom: 16px;
}

.auth-form .form-check-label {
    font-size: 0.9rem;
    color: #374151;
}

.auth-form .btn-primary {
    background: var(--auth-accent);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.15s;
}

.auth-form .btn-primary:hover {
    background: var(--auth-accent-hover);
}

.auth-form .text-danger {
    font-size: 0.82rem;
}

.auth-form hr {
    border-color: #e5e7eb;
    margin: 24px 0;
}

.auth-form h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

/* Links */
.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.auth-links a {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Validation summary */
.auth-form .validation-summary-errors ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    color: #991b1b;
    font-size: 0.88rem;
}

/* Confirmation page */
.auth-confirmation {
    text-align: center;
    padding: 20px 0;
}

.auth-confirmation .confirm-icon {
    font-size: 3rem;
    color: var(--auth-accent);
    margin-bottom: 16px;
}

.auth-confirmation h2 {
    text-align: center;
}

.auth-confirmation p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

.auth-confirmation a {
    color: var(--auth-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-page {
        flex-direction: column;
    }

    .auth-left {
        padding: 30px;
        min-height: auto;
    }

    .auth-tagline h1 {
        font-size: 1.5rem;
    }

    .auth-features {
        display: none;
    }

    .auth-right {
        padding: 30px 20px;
    }
}
