body.unsoed-auth {
    font-family: var(--font-sans);
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 86% -14%, rgba(108, 145, 229, 0.26), transparent 44%),
        radial-gradient(circle at 10% 112%, rgba(86, 112, 174, 0.22), transparent 36%),
        linear-gradient(to bottom right, #122857, #1b336f 55%, #24407c);
    color: var(--text-primary);
}

body.unsoed-auth::before {
    content: "";
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    width: 560px;
    height: 420px;
    top: -128px;
    right: -96px;
    left: auto;
    bottom: auto;
    border-radius: 999px;
    opacity: 1;
    background: rgba(86, 112, 174, .42);
    filter: blur(72px);
    z-index: 0;
}

body.unsoed-auth::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .62;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100 C 20 0 50 0 100 100 Z' fill='%235b78bd'/%3E%3C/svg%3E");
    background-size: 100% 74%;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 0;
}

.unsoed-auth .auth-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.unsoed-auth .auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: none;
    z-index: 0;
}

.unsoed-auth .auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    background: linear-gradient(180deg, rgba(17, 39, 86, 0.86) 0%, rgba(12, 32, 76, 0.82) 100%);
    border: 1px solid rgba(166, 195, 255, 0.32);
    border-radius: var(--radius-lg);
    box-shadow: 0 22px 48px rgba(5, 16, 44, 0.42);
    backdrop-filter: blur(8px);
    padding: 1.6rem;
}

.unsoed-auth .auth-card-login {
    justify-self: end;
}

.unsoed-auth .auth-logo {
    width: 230px;
    max-width: 100%;
    display: block;
    margin: 0 auto .7rem;
}

.unsoed-auth .auth-subtitle {
    text-align: center;
    color: rgba(224, 234, 255, 0.86);
    font-weight: 500;
    margin-bottom: 1.1rem;
}

.unsoed-auth .auth-helper {
    border: 1px solid rgba(144, 174, 236, 0.32);
    background: linear-gradient(180deg, rgba(30, 57, 115, 0.62) 0%, rgba(25, 50, 105, 0.56) 100%);
    border-radius: var(--radius-md);
    padding: .86rem .9rem;
    margin-bottom: 1.1rem;
    font-size: .88rem;
    color: rgba(222, 233, 255, 0.93);
}

.unsoed-auth .auth-btn {
    width: 100%;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.unsoed-auth .auth-btn:hover {
    transform: translateY(-1px);
}

.unsoed-auth .auth-btn-civitas {
    --bs-btn-color: #ffffff;
    --bs-btn-border-color: #2f57ad;
    --bs-btn-bg: #2f57ad;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-border-color: #3f70d1;
    --bs-btn-hover-bg: #3f70d1;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-border-color: #244a96;
    --bs-btn-active-bg: #244a96;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-border-color: #2f57ad;
    --bs-btn-disabled-bg: #2f57ad;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(47, 87, 173, 0.38);
}

.unsoed-auth .auth-btn-civitas:hover {
    box-shadow: 0 14px 30px rgba(63, 112, 209, 0.45);
}

.unsoed-auth .auth-btn-civitas::after {
    content: "";
    position: absolute;
    top: -18%;
    left: -38%;
    width: 28%;
    height: 136%;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(252, 199, 65, 0.12) 36%,
        rgba(252, 199, 65, 0.38) 50%,
        rgba(252, 199, 65, 0.12) 64%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-18deg);
    animation: civitas-shimmer 2.8s ease-in-out infinite;
}

@keyframes civitas-shimmer {
    0% {
        left: -42%;
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    42% {
        left: 118%;
        opacity: 0.96;
    }
    100% {
        left: 118%;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .unsoed-auth .auth-btn-civitas::after {
        animation: none;
        opacity: 0;
    }
}

.unsoed-auth .auth-btn-external {
    --bs-btn-color: #ffffff;
    --bs-btn-border-color: #0f766e;
    --bs-btn-bg: #0f766e;
    --bs-btn-hover-bg: #0d9488;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-border-color: #0d9488;
    --bs-btn-active-bg: #0b5f59;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-border-color: #0b5f59;
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.34);
}

.unsoed-auth .auth-btn-external:hover {
    box-shadow: 0 12px 26px rgba(13, 148, 136, 0.42);
}

.unsoed-auth .auth-btn-note {
    margin-top: .42rem;
    text-align: center;
    color: rgba(201, 218, 248, 0.86);
    font-size: .82rem;
}

.unsoed-auth .auth-actions {
    display: grid;
    gap: .9rem;
}

.unsoed-auth .auth-footer-note {
    margin-top: 1rem;
    font-size: .83rem;
    color: rgba(222, 233, 255, 0.9);
    border: 1px solid rgba(150, 180, 237, 0.3);
    background: rgba(33, 59, 113, 0.48);
    border-radius: var(--radius-sm);
    padding: .65rem .75rem;
}

.unsoed-auth .auth-help-link {
    color: rgba(189, 207, 242, 0.88);
}

.unsoed-auth .auth-help-link a {
    color: rgba(226, 238, 255, 0.98);
    font-weight: 600;
    text-decoration: none;
}

.unsoed-auth .auth-help-link a:hover {
    color: #ffffff;
    text-decoration: underline;
}
