﻿[hidden] {
    display: none !important;
}

.auth-login-btn {
    background: linear-gradient(135deg, var(--gold, #d4af37), #b8860b);
    color: #14110a;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .auth-login-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(212, 175, 55, .35);
    }

.auth-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 12px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, .35);
    background: rgba(212, 175, 55, .06);
    animation: authBadgeIn .35s ease both;
}

@keyframes authBadgeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

.auth-user-name {
    font-size: 12.5px;
    color: #E7EAEE;
    font-weight: 600;
}

.auth-user-plan {
    font-size: 10.5px;
    color: var(--gold, #d4af37);
}

.auth-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, .25);
    background: rgba(255, 107, 107, .08);
    color: #ff6b6b;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
    flex-shrink: 0;
}

    .auth-logout-btn:hover {
        background: rgba(255, 107, 107, .18);
        transform: translateY(-1px);
    }

.auth-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 10, .72);
    backdrop-filter: blur(3px);
    z-index: 200;
    opacity: 0;
    transition: opacity .2s ease;
}

    .auth-backdrop:not([hidden]) {
        opacity: 1;
    }

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(.96);
    width: min(380px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #12151a;
    border: 1px solid rgba(212, 175, 55, .25);
    border-radius: 18px;
    padding: 28px 22px 24px;
    z-index: 201;
    opacity: 0;
    transition: opacity .22s ease, transform .22s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);
}

    .auth-modal.is-open {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

.auth-close {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #9aa2ad;
}





.auth-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 4px 0 20px;
}

.auth-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

    .auth-progress-step b {
        font-size: 9.5px;
        font-weight: 600;
        color: #6b7280;
        transition: color .2s ease;
    }

    .auth-progress-step.is-active b,
    .auth-progress-step.is-done b {
        color: var(--gold, #d4af37);
    }

.auth-progress-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    background: #0B0E11;
    border: 1px solid rgba(255,255,255,.12);
    transition: all .25s ease;
}

.auth-progress-line {
    width: 22px;
    height: 1px;
    background: rgba(255,255,255,.12);
    margin-top: -16px;
    transition: background .25s ease;
}

.auth-progress-step.is-active .auth-progress-dot {
    background: linear-gradient(135deg, var(--gold, #d4af37), #b8860b);
    border-color: transparent;
    color: #14110a;
    box-shadow: 0 0 0 4px rgba(212,175,55,.18);
}

.auth-progress-step.is-done .auth-progress-dot {
    background: rgba(23,199,135,.16);
    border-color: rgba(23,199,135,.45);
    color: var(--bull, #17C787);
}

.auth-progress-step.is-done + .auth-progress-line {
    background: rgba(23,199,135,.4);
}

.auth-terms-box {
    max-height: 190px;
    overflow-y: auto;
    background: #0B0E11;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

    .auth-terms-box p {
        font-size: 11.5px;
        color: #9aa2ad;
        line-height: 1.9;
        margin: 0 0 10px;
    }

        .auth-terms-box p:last-child {
            margin-bottom: 0;
        }

.auth-step {
    animation: authStepIn .28s ease both;
}

@keyframes authStepIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-title {
    font-size: 18px;
    color: #E7EAEE;
    margin: 0 0 6px;
    text-align: center;
}

.auth-sub {
    font-size: 12.5px;
    color: #9aa2ad;
    text-align: center;
    margin: 0 0 18px;
}

.auth-input {
    width: 100%;
    background: #0B0E11;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 12px 14px;
    color: #E7EAEE;
    font-size: 14px;
    margin-bottom: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .auth-input:focus {
        outline: none;
        border-color: var(--gold, #d4af37);
        box-shadow: 0 0 0 3px rgba(212,175,55,.15);
    }

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gold, #d4af37), #b8860b);
    color: #14110a;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    margin-top: 4px;
    transition: transform .15s ease;
}

    .auth-btn:hover {
        transform: translateY(-1px);
    }

    .auth-btn:active {
        transform: translateY(0);
    }

.auth-link {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    color: #9aa2ad;
    font-size: 12.5px;
    margin-top: 12px;
    cursor: pointer;
}

    .auth-link:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

    .auth-link:not(:disabled):hover {
        color: var(--gold, #d4af37);
    }

.auth-error {
    color: #ff6b6b;
    font-size: 12px;
    text-align: center;
    margin: 0 0 10px;
}





.otp-icon-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold, #d4af37);
}

.otp-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, .3);
    animation: otpPulse 2.2s ease-out infinite;
}

.otp-icon-ring2 {
    animation-delay: 1.1s;
}

@keyframes otpPulse {
    0% {
        transform: scale(.75);
        opacity: .8;
    }

    75% {
        transform: scale(1.35);
        opacity: 0;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.otp-icon {
    position: relative;
    z-index: 1;
    animation: otpIconIn .4s ease both;
}

.otp-icon-check {
    position: absolute;
    z-index: 1;
    color: var(--bull, #17C787);
    opacity: 0;
    transform: scale(.5);
    transition: opacity .25s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

.otp-icon-wrap.is-success .otp-icon {
    opacity: 0;
    transform: scale(.6);
}

.otp-icon-wrap.is-success .otp-icon-check {
    opacity: 1;
    transform: scale(1);
}

.otp-icon-wrap.is-success .otp-icon-ring {
    border-color: rgba(23, 199, 135, .35);
    animation: none;
    opacity: 1;
    transform: scale(1);
}

@keyframes otpIconIn {
    from {
        opacity: 0;
        transform: scale(.7) translateY(4px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 12px;
    direction: ltr;
    margin-bottom: 6px;
}

    .otp-boxes.is-shake {
        animation: otpShake .4s ease;
    }

@keyframes otpShake {
    10%, 90% {
        transform: translateX(-2px);
    }

    20%, 80% {
        transform: translateX(4px);
    }

    30%, 50%, 70% {
        transform: translateX(-7px);
    }

    40%, 60% {
        transform: translateX(7px);
    }
}

.otp-box {
    width: 52px;
    height: 58px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #E7EAEE;
    background: #0B0E11;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

    .otp-box:focus {
        outline: none;
        border-color: var(--gold, #d4af37);
        box-shadow: 0 0 0 4px rgba(212,175,55,.18);
        transform: translateY(-2px);
    }

.otp-boxes.is-shake .otp-box {
    border-color: #ff6b6b;
}

.otp-boxes.is-success .otp-box {
    border-color: var(--bull, #17C787);
    box-shadow: 0 0 0 4px rgba(23,199,135,.15);
    color: var(--bull, #17C787);
}

.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #9aa2ad;
    margin: 10px 0 14px;
    cursor: pointer;
}

    .auth-checkbox input {
        margin-top: 2px;
        accent-color: var(--gold, #d4af37);
    }

.auth-spinner {
    width: 34px;
    height: 34px;
    margin: 10px auto 14px;
    border: 3px solid rgba(212,175,55,.2);
    border-top-color: var(--gold, #d4af37);
    border-radius: 50%;
    animation: authSpin .8s linear infinite;
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .otp-box {
        width: 46px;
        height: 52px;
        font-size: 20px;
    }
}
