/* Auth pages — Login, Forgot Password, Access Denied */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--bg);
}

.auth-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    background: linear-gradient(160deg, #0d1f3c 0%, #1B3A6B 40%, #1e4a85 70%, #c45a10 100%);
    color: var(--on-primary);
    position: relative;
    overflow: hidden;
}

    .auth-brand::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.12) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
        pointer-events: none;
    }

.auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 440px;
}

.auth-brand .logo {
    margin-bottom: 40px;
}

.auth-brand .logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1B3A6B 0%, #c45a10 100%);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.auth-brand .logo-title {
    color: white;
    font-size: 20px;
}

.auth-brand .logo-title-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 280px;
    max-height: 70px;
    object-fit: contain;
}

.auth-brand .logo-sub {
    color: rgba(255,255,255,0.75);
}

.auth-brand h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}

.auth-brand p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.auth-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .auth-feature-icon svg {
        width: 16px;
        height: 16px;
    }

.auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    max-width: 50%;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

    .auth-card h2 {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 8px;
        color: var(--text);
    }

    .auth-card .auth-subtitle {
        font-size: 14px;
        color: var(--muted);
        margin-bottom: 28px;
    }

.auth-form .form-group {
    margin-bottom: 20px;
}

.password-wrap {
    position: relative;
}

    .password-wrap .form-control {
        padding-right: 44px;
    }

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    padding: 4px;
}

    .password-toggle:hover {
        color: var(--text);
    }

    .password-toggle svg {
        width: 18px;
        height: 18px;
    }

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text);
}

    .auth-remember input {
        width: 16px;
        height: 16px;
        accent-color: var(--primary);
    }

.auth-link {
    color: var(--link);
    font-weight: 500;
}

    .auth-link:hover {
        text-decoration: underline;
    }

.auth-submit {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-bottom: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    font-size: 12px;
    color: var(--muted);
}

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

.auth-demo {
    background: var(--primary-light);
    border: 1px solid rgba(106, 137, 167, 0.2);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text);
}

    .auth-demo strong {
        display: block;
        margin-bottom: 6px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--primary);
    }

    .auth-demo code {
        font-size: 12px;
        color: var(--muted);
    }

.auth-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* Access Denied */
.auth-page-centered {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg);
}

.denied-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.denied-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--danger-light);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

    .denied-icon svg {
        width: 40px;
        height: 40px;
    }

.denied-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.denied-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.denied-meta {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 28px;
    text-align: left;
    font-size: 13px;
}

    .denied-meta div {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        border-bottom: 1px solid var(--border-light);
    }

        .denied-meta div:last-child {
            border-bottom: none;
        }

    .denied-meta span {
        color: var(--muted);
    }

/* Illustration */
.auth-illustration {
    margin-top: 40px;
}

.auth-illus-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 340px;
}

.auth-illus-doc {
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 18px 20px;
    width: 90px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.illus-line {
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

    .illus-line.short {
        width: 60%;
    }

.illus-btn {
    height: 18px;
    width: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin-top: 4px;
}

.auth-illus-envelope {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illus-check {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .auth-page {
        flex-direction: column;
    }

    .auth-brand {
        padding: 40px 32px;
        min-height: auto;
    }

        .auth-brand h1 {
            font-size: 26px;
        }

    .auth-panel {
        max-width: none;
    }
}
