/*
 * CSMU auth surfaces. Scoped to the two frontend authentication templates.
 * Existing theme tokens and form components remain the source of truth.
 */
.csmu-auth-page {
    --csmu-auth-accent: var(--primary, #e62d04);
    --csmu-auth-accent-hover: var(--hov-primary, #c52907);
    --csmu-auth-surface: rgba(20, 20, 22, 0.94);
    --csmu-auth-line: rgba(255, 255, 255, 0.1);
    min-height: 60vh;
}

.csmu-auth-shell {
    width: 100%;
}

.csmu-auth-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--csmu-auth-line);
    border-top: 3px solid var(--csmu-auth-accent);
    background: var(--csmu-auth-surface);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    animation: csmu-auth-enter 420ms ease-out both;
}

.csmu-auth-heading {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.csmu-auth-heading h1 {
    color: #fff;
    letter-spacing: -0.015em;
}

.csmu-auth-card .form-control {
    min-height: 46px;
    border-color: var(--csmu-auth-line);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.csmu-auth-card .form-control:focus {
    border-color: var(--csmu-auth-accent);
    box-shadow: 0 0 0 3px var(--soft-primary, rgba(230, 45, 4, 0.22));
}

.csmu-auth-card .btn-primary {
    min-height: 46px;
    background-color: var(--csmu-auth-accent);
    border-color: var(--csmu-auth-accent);
    transition: background-color 160ms ease, transform 160ms ease;
}

.csmu-auth-card .btn-primary:hover,
.csmu-auth-card .btn-primary:focus-visible {
    background-color: var(--csmu-auth-accent-hover);
    border-color: var(--csmu-auth-accent-hover);
}

.csmu-auth-card a:focus-visible,
.csmu-auth-card button:focus-visible,
.csmu-auth-card input:focus-visible {
    outline: 2px solid var(--csmu-auth-accent);
    outline-offset: 2px;
}

.csmu-auth-page .is-invalid {
    border-color: #dc3545;
}

@keyframes csmu-auth-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 575.98px) {
    .csmu-auth-page {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .csmu-auth-heading {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .csmu-auth-card {
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .csmu-auth-card,
    .csmu-auth-card .form-control,
    .csmu-auth-card .btn-primary {
        animation: none;
        transition: none;
    }
}
