/* Auth modal */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal.is-open {
    display: flex;
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.82);
    backdrop-filter: blur(5px);
}

.auth-card {
    position: relative;
    width: min(100%, 460px);
    background: linear-gradient(180deg, #13243a 0%, #0c1726 100%);
    border: 1px solid #ffffff1f;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    animation: authFadeIn 0.25s ease;
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #ffffff1a;
    color: #ffffff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.auth-close:hover {
    background: #ffffff30;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-tab {
    border: 1px solid #ffffff24;
    background: #091525;
    color: #b8c2d1;
    border-radius: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 14px;
    transition: 0.25s;
}

.auth-tab:hover {
    color: #ffffff;
    border-color: #ffffff4a;
}

.auth-tab.is-active {
    background: #ff8c00;
    color: #ffffff;
    border-color: #ff8c00;
}

.auth-description h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-description p {
    color: #b8c2d1;
    margin-bottom: 20px;
}

.auth-form {
    display: none;
    gap: 12px;
}

.auth-form.is-active {
    display: grid;
}

.auth-form label {
    display: grid;
    gap: 7px;
    color: #dbe5f3;
    font-size: 14px;
}

.auth-form input {
    border: 1px solid #ffffff2e;
    border-radius: 11px;
    background: #081120;
    color: #ffffff;
    padding: 12px 14px;
    outline: none;
}

.auth-form input:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 0 2px #ff8c0030;
}

.auth-submit {
    margin-top: 4px;
    border: none;
    border-radius: 11px;
    background: #ff8c00;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 16px;
    cursor: pointer;
    transition: 0.3s;
}

.auth-submit:hover {
    transform: translateY(-2px);
    background: #e07b00;
}

.auth-feedback {
    min-height: 22px;
    margin-top: 12px;
    color: #b8c2d1;
    font-size: 14px;
}

.auth-feedback.is-error {
    color: #ff8f8f;
}

.auth-feedback.is-success {
    color: #85f3a0;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 20px;
    }

    .auth-description h2 {
        font-size: 24px;
    }
}
