.auth-login-trigger.btn-twitch-topright {
    background: rgba(8, 15, 35, 0.72);
    border-color: rgba(168, 85, 247, 0.52);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.34), 0 0 14px rgba(168, 85, 247, 0.18);
}

.auth-login-trigger.btn-twitch-topright:hover,
.auth-login-trigger.btn-twitch-topright:focus-visible {
    background: rgba(18, 25, 48, 0.9);
    border-color: rgba(192, 132, 252, 0.8);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 18px rgba(168, 85, 247, 0.28);
    outline: none;
}

.auth-login-open {
    overflow: hidden;
}

.auth-login-modal[hidden] {
    display: none !important;
}

.auth-login-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    padding: 22px;
}

.auth-login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 18, 0.7);
    backdrop-filter: blur(7px);
}

.auth-login-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 390px);
    box-sizing: border-box;
    border: 1px solid rgba(168, 85, 247, 0.38);
    border-radius: 16px;
    background: rgba(9, 13, 29, 0.985);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.58),
        0 0 32px rgba(145, 70, 255, 0.12);
    overflow: hidden;
}

.auth-login-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(236, 239, 249, 0.72);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.auth-login-close:hover,
.auth-login-close:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
}

.auth-login-dialog-body {
    min-width: 0;
    padding: 54px 18px 18px;
    display: grid;
    gap: 10px;
}

.auth-provider-options {
    display: grid;
    gap: 10px;
}

.auth-remembered-login {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.auth-remembered-login[hidden],
.auth-provider-options[hidden] {
    display: none !important;
}

.auth-remembered-avatar {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(168, 85, 247, 0.46);
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.09);
    color: rgba(236, 239, 249, 0.78);
    font-size: 1.55rem;
}

.auth-remembered-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-remembered-title {
    max-width: 100%;
    margin-top: 2px;
    color: #fff;
    font-size: 1.02rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.auth-remembered-provider {
    margin-top: -5px;
    color: rgba(214, 220, 235, 0.58);
    font-size: 0.76rem;
}

.auth-remembered-continue {
    margin-top: 4px;
    border-color: rgba(168, 85, 247, 0.52);
    background: rgba(168, 85, 247, 0.13);
}

.auth-other-account {
    min-height: 36px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(211, 217, 234, 0.72);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-other-account:hover,
.auth-other-account:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
}

.social-auth-provider {
    min-height: 44px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(176, 186, 211, 0.2);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.085);
    color: #f7f8ff;
    font-size: 0.88rem;
    font-weight: 680;
    text-decoration: none;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.social-auth-provider:hover,
.social-auth-provider:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(198, 207, 230, 0.42);
    outline: none;
}

.social-auth-twitch {
    border-color: rgba(145, 70, 255, 0.5);
    background: rgba(145, 70, 255, 0.1);
}

.social-auth-twitch:hover,
.social-auth-twitch:focus-visible {
    background: rgba(145, 70, 255, 0.2);
    border-color: rgba(145, 70, 255, 0.88);
}

.social-auth-provider-svg {
    width: 17px;
    min-width: 17px;
    height: 17px;
    display: block;
    flex: 0 0 17px;
}

.social-auth-twitch .social-auth-provider-svg {
    fill: #a970ff;
}

.social-auth-google-logo {
    width: 18px;
    min-width: 18px;
    height: 18px;
    flex-basis: 18px;
}

.social-auth-apple-logo {
    fill: currentColor;
}

.social-auth-provider.is-disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.auth-twitch-switch-hint {
    margin: -2px 2px 0;
    padding: 8px 10px;
    border: 1px solid rgba(145, 70, 255, 0.22);
    border-radius: 8px;
    background: rgba(145, 70, 255, 0.06);
    color: rgba(214, 220, 235, 0.62);
    font-size: 0.7rem;
    line-height: 1.45;
    text-align: left;
}

.auth-twitch-switch-hint[hidden] {
    display: none !important;
}

.auth-login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 2px 0;
    color: rgba(218, 224, 241, 0.52);
}

.auth-login-divider span {
    height: 1px;
    background: rgba(176, 186, 211, 0.22);
}

.auth-login-divider em {
    font-style: normal;
    font-size: 0.72rem;
    line-height: 1;
}

.auth-login-signup {
    margin: 4px 0 0;
    color: rgba(214, 220, 235, 0.5);
    font-size: 0.72rem;
    text-align: center;
}

.auth-login-signup a {
    color: rgba(192, 132, 252, 0.86);
    text-decoration: none;
}

.auth-login-signup a:hover,
.auth-login-signup a:focus-visible {
    color: #d8b4fe;
    text-decoration: underline;
    outline: none;
}

.social-auth-notice {
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 21000;
    width: min(calc(100% - 32px), 620px);
    transform: translateX(-50%);
    padding: 11px 14px;
    border: 1px solid rgba(174, 182, 204, 0.34);
    border-radius: 10px;
    background: rgba(3, 9, 27, 0.92);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
    font-size: 0.86rem;
    text-align: center;
    backdrop-filter: blur(14px);
}

.social-auth-notice.is-success {
    border-color: rgba(34, 197, 94, 0.48);
}

.social-auth-notice.is-error {
    border-color: rgba(239, 68, 68, 0.46);
}

@media (max-width: 620px) {
    .auth-login-modal {
        padding: 14px;
    }

    .auth-login-dialog {
        width: min(100%, 360px);
    }
}
