body.sos-auth {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    background: #f3eef5;
    color: #302334;
    padding: 28px 16px;
}

.sos-auth-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.sos-auth-granite {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, #e5d0ef, transparent 65%),
        linear-gradient(150deg, #f6f2f8, #eee4f2 60%, #e0cbe9);
}

.sos-auth-ambient-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 65% at 50% 36%, rgba(255, 255, 255, 0.5), rgba(221, 196, 236, 0.12) 55%, rgba(118, 34, 124, 0.08));
}

.sos-auth-ambient-mist {
    position: absolute;
    inset: 0;
}

.sos-auth-mist-blob {
    position: absolute;
    margin: 0;
    border-radius: 50%;
    filter: blur(36px);
    transform: translate(-50%, -50%);
    will-change: left, top, width, height, opacity, background;
    pointer-events: none;
    mix-blend-mode: normal;
}

.sos-auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    animation: sos-auth-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sos-auth-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.sos-auth-brand {
    text-align: center;
    margin-bottom: 22px;
}

.sos-auth-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(280px, 100%);
    height: 116px;
    margin: 0 auto 14px;
    animation: sos-auth-logo-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sos-auth-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes sos-auth-logo-in {
    from {
        opacity: 0;
        transform: scale(0.88);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.sos-auth-wordmark {
    font-family: var(--sos-font-primary);
    font-size: 1.65rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #3a2230;
    line-height: 1.2;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.sos-auth-tagline {
    margin-top: 8px;
    font-family: var(--sos-font-primary);
    font-size: 0.8rem;
    font-weight: 400;
    color: #654c6b;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.sos-auth-card {
    padding: 26px 24px 22px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--sos-radius-xl, 16px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 18px 50px rgba(81, 6, 92, 0.1);
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.sos-auth-title {
    font-family: var(--sos-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #3d2a34;
    margin: 0 0 16px;
    text-align: center;
    letter-spacing: var(--sos-tracking-tight, -0.01em);
}

.sos-auth-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    margin: 0 auto 18px;
    width: fit-content;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--sos-radius-md, 8px);
}

.sos-auth-tab {
    padding: 6px 14px;
    font-size: 0.78rem;
    color: #6b4f5c;
    border-radius: var(--sos-radius-sm, 6px);
    white-space: nowrap;
}

.sos-auth-tab.active {
    background: #fff;
    color: #3d2a34;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(120, 60, 90, 0.1);
}

.sos-auth-tab.done {
    color: #8a6a78;
}

.sos-auth-form .form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a3340;
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}

.sos-auth-form .mb-2,
.sos-auth-form .mb-3 {
    margin-bottom: 14px !important;
}

.sos-auth .form-control {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(118, 80, 130, 0.28);
    color: #302334;
    padding: 12px 14px;
    font-size: 0.92rem;
    border-radius: var(--sos-radius-md, 8px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sos-auth .form-control:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: #76227c;
    color: #302334;
    box-shadow: 0 0 0 3px rgba(118, 34, 124, 0.15);
}

.sos-auth .form-control::placeholder {
    color: #a88a97;
}

.sos-auth .form-control:-webkit-autofill,
.sos-auth .form-control:-webkit-autofill:hover,
.sos-auth .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #2c1e26;
    caret-color: #2c1e26;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.9) inset;
    border-color: rgba(180, 130, 150, 0.28);
    transition: background-color 99999s ease-in-out 0s;
}

.sos-auth-disclaimer {
    margin: 14px 0 0;
    font-size: 0.72rem;
    color: #6b4f5c;
    text-align: center;
    line-height: 1.4;
}

.sos-field-error {
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #9f1239;
    background: rgba(255, 228, 236, 0.85);
    border: 1px solid rgba(244, 114, 146, 0.45);
    border-radius: var(--sos-radius-md, 8px);
}

.sos-password-field {
    position: relative;
}

.sos-password-input {
    padding-right: 42px;
}

.sos-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: none;
    color: #8a6a78;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.sos-password-toggle:hover {
    color: #4a3340;
}

.sos-auth .sos-btn-primary {
    margin-top: 4px;
    background: #51065c !important;
    border: none !important;
    color: #fff !important;
    padding: 13px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: var(--sos-radius-md, 8px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 10px 24px rgba(81, 6, 92, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.sos-auth .sos-btn-primary:hover {
    background: #76227c !important;
    color: #fff !important;
    filter: brightness(1.03);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4) inset,
        0 12px 28px rgba(81, 6, 92, 0.22);
}

.sos-auth .sos-btn-primary:active {
    transform: translateY(1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 6px 16px rgba(81, 6, 92, 0.18);
}

.sos-auth .sos-btn-primary:disabled {
    opacity: 0.6;
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .sos-auth-shell,
    .sos-auth-logo-wrap,
    .sos-auth-logo {
        animation: none !important;
    }

    .sos-auth-mist-blob {
        filter: blur(36px);
        mix-blend-mode: normal;
    }
}

@media (max-width: 480px) {
    .sos-auth-shell {
        max-width: none;
    }

    .sos-auth-logo-wrap,
    .sos-auth-logo {
        width: min(240px, 100%);
        height: 100px;
    }

    .sos-auth-wordmark {
        font-size: 1.35rem;
    }

    .sos-auth-card {
        padding: 18px 16px;
    }
}
