/* OSANIME OAuth Stage 2 — Discord Register/Login */
:root {
    --oauth-discord: #5865f2;
    --oauth-discord-soft: rgba(88,101,242,.16);
    --oauth-border: rgba(255,255,255,.10);
    --oauth-surface: rgba(8,17,35,.74);
    --oauth-muted: rgba(224,231,255,.62);
}

.auth-socials.oauth-stage2-socials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.oauth-stage2-provider {
    min-width: 0;
    min-height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    border: 1px solid var(--oauth-border) !important;
    background: rgba(255,255,255,.035) !important;
    color: rgba(255,255,255,.88) !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.oauth-stage2-provider > b {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    font-size: 14px;
}

.oauth-stage2-provider.discord.is-ready {
    border-color: rgba(88,101,242,.48) !important;
    background: linear-gradient(135deg, rgba(88,101,242,.20), rgba(134,92,246,.10)) !important;
}

.oauth-stage2-provider.discord.is-ready > b {
    background: var(--oauth-discord);
    color: #fff;
    box-shadow: 0 8px 22px rgba(88,101,242,.28);
}

@media (hover:hover) and (pointer:fine) {
    .oauth-stage2-provider.discord.is-ready:hover {
        transform: translateY(-2px);
        border-color: rgba(111,124,255,.82) !important;
        background: linear-gradient(135deg, rgba(88,101,242,.28), rgba(134,92,246,.16)) !important;
        box-shadow: 0 12px 30px rgba(16,24,48,.34);
    }
}

.oauth-stage2-provider.is-disabled {
    cursor: not-allowed;
    opacity: .56;
}

.oauth-stage2-provider.is-disabled small {
    position: absolute;
    right: 7px;
    top: 5px;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255,255,255,.48);
}

.oauth-stage2-provider.facebook > b {
    color: #fff;
    background: #1877f2;
}

.oauth-stage2-provider.google > b {
    background: #fff;
    color: #4285f4;
    font-weight: 900;
}

.oauth-stage2-register-divider {
    margin-top: 20px !important;
}

.oauth-stage2-register-socials {
    margin-top: 2px;
}

.oauth-stage2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(88,101,242,.34);
    background: rgba(88,101,242,.10);
    color: #c8ceff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.oauth-stage2-trust-list {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    max-width: 560px;
}

.oauth-stage2-trust-list > div {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: rgba(229,235,255,.68);
    font-size: 13px;
    line-height: 1.55;
}

.oauth-stage2-trust-list i {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #b8c1ff;
    background: rgba(88,101,242,.12);
}

.oauth-stage2-complete-card {
    max-width: 540px;
}

.oauth-stage2-provider-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(88,101,242,.26);
    background: linear-gradient(135deg, rgba(88,101,242,.11), rgba(255,79,184,.045));
}

.oauth-stage2-provider-summary img,
.oauth-stage2-avatar-fallback {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 14px;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--oauth-discord);
    border: 1px solid rgba(255,255,255,.12);
}

.oauth-stage2-avatar-fallback i {
    font-size: 24px;
}

.oauth-stage2-provider-summary > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.oauth-stage2-provider-summary small {
    color: rgba(220,227,255,.56);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 800;
}

.oauth-stage2-provider-summary strong {
    min-width: 0;
    color: #fff;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oauth-stage2-provider-summary span {
    min-width: 0;
    color: #9ee8bf;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oauth-stage2-provider-summary span i {
    margin-right: 5px;
}

.oauth-stage2-complete-form {
    margin-top: 20px;
}

.oauth-stage2-agree {
    margin-top: 20px !important;
}

.oauth-stage2-terms-error {
    display: block;
    margin-top: -10px;
    margin-bottom: 14px;
}

.oauth-stage2-discord-submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.oauth-stage2-discord-submit i {
    font-size: 17px;
}

@media (max-width: 980px) {
    .auth-socials.oauth-stage2-socials {
        grid-template-columns: 1fr;
    }

    .oauth-stage2-provider {
        justify-content: flex-start;
        min-height: 48px;
        padding-inline: 14px !important;
    }

    .oauth-stage2-provider.is-disabled small {
        position: static;
        margin-left: auto;
        font-size: 8px;
    }
}

@media (max-width: 640px) {
    .oauth-stage2-trust-list {
        margin-top: 20px;
    }

    .oauth-stage2-provider-summary {
        align-items: flex-start;
    }

    .oauth-stage2-provider-summary img,
    .oauth-stage2-avatar-fallback {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oauth-stage2-provider {
        transition: none !important;
    }
}

/* OSANIME OAuth Stage 3 — Google Register/Login */
:root {
    --oauth-google-blue: #4285f4;
    --oauth-google-green: #34a853;
    --oauth-google-yellow: #fbbc05;
    --oauth-google-red: #ea4335;
}

.oauth-stage2-provider.google.is-ready {
    border-color: rgba(66,133,244,.42) !important;
    background: linear-gradient(135deg, rgba(66,133,244,.14), rgba(52,168,83,.08)) !important;
}

.oauth-stage2-provider.google.is-ready > b {
    background: #fff;
    color: var(--oauth-google-blue);
    box-shadow: 0 8px 22px rgba(66,133,244,.18);
}

@media (hover:hover) and (pointer:fine) {
    .oauth-stage2-provider.google.is-ready:hover {
        transform: translateY(-2px);
        border-color: rgba(66,133,244,.75) !important;
        background: linear-gradient(135deg, rgba(66,133,244,.22), rgba(52,168,83,.11)) !important;
        box-shadow: 0 12px 30px rgba(16,24,48,.34);
    }
}

.oauth-stage3-google-eyebrow {
    border-color: rgba(66,133,244,.32);
    background: rgba(66,133,244,.09);
    color: #d7e6ff;
}

.oauth-stage3-google-trust-list i {
    color: #cfe1ff;
    background: rgba(66,133,244,.11);
}

.oauth-stage3-google-summary {
    border-color: rgba(66,133,244,.24);
    background: linear-gradient(135deg, rgba(66,133,244,.10), rgba(52,168,83,.05));
}

.oauth-stage3-google-avatar-fallback {
    background: #fff;
    color: var(--oauth-google-blue);
}

.oauth-stage3-google-submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.oauth-stage3-google-submit i {
    font-size: 16px;
}

/* OSANIME OAuth Stage 4 — Facebook Register/Login */
:root {
    --oauth-facebook: #1877f2;
    --oauth-facebook-soft: rgba(24,119,242,.14);
}

.oauth-stage2-provider.facebook.is-ready {
    border-color: rgba(24,119,242,.44) !important;
    background: linear-gradient(135deg, rgba(24,119,242,.17), rgba(24,119,242,.07)) !important;
}

.oauth-stage2-provider.facebook.is-ready > b {
    color: #fff;
    background: var(--oauth-facebook);
    box-shadow: 0 8px 22px rgba(24,119,242,.24);
}

@media (hover:hover) and (pointer:fine) {
    .oauth-stage2-provider.facebook.is-ready:hover {
        transform: translateY(-2px);
        border-color: rgba(72,148,247,.82) !important;
        background: linear-gradient(135deg, rgba(24,119,242,.25), rgba(24,119,242,.11)) !important;
        box-shadow: 0 12px 30px rgba(8,34,78,.34);
    }
}

.oauth-stage4-facebook-eyebrow {
    border-color: rgba(24,119,242,.33);
    background: rgba(24,119,242,.10);
    color: #dbeaff;
}

.oauth-stage4-facebook-trust-list i {
    color: #d9eaff;
    background: rgba(24,119,242,.12);
}

.oauth-stage4-facebook-summary {
    border-color: rgba(24,119,242,.26);
    background: linear-gradient(135deg, rgba(24,119,242,.11), rgba(255,79,184,.035));
}

.oauth-stage4-facebook-summary > div {
    min-width: 0;
}

.oauth-stage4-facebook-summary span {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.42;
}

.oauth-stage4-facebook-avatar-fallback {
    background: var(--oauth-facebook);
    color: #fff;
}

.oauth-stage4-email-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -8px 0 20px;
    padding: 11px 12px;
    border: 1px solid rgba(24,119,242,.18);
    border-radius: 12px;
    background: rgba(24,119,242,.065);
    color: rgba(222,232,255,.67);
    font-size: 11px;
    line-height: 1.5;
}

.oauth-stage4-email-note i {
    margin-top: 2px;
    color: #8fbdff;
}

.oauth-stage4-facebook-submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.oauth-stage4-facebook-submit i {
    font-size: 16px;
}

@media (max-width: 1120px) and (min-width: 981px) {
    .auth-socials.oauth-stage2-socials {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .oauth-stage4-email-note {
        font-size: 10.5px;
    }
}
