/* ===== Auth Page ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-primary);
}

.auth-page .logo {
    margin-bottom: 40px;
}

.auth-card {
    max-width: 460px;
    width: 100%;
    padding: 48px 40px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.auth-tab:hover {
    color: var(--text-primary);
}

.auth-tab--active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
    height: 50px;
    font-size: 16px;
    font-weight: 500;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Telegram button */
.telegram-login-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tg-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 50px;
    border-radius: var(--btn-radius);
    background: linear-gradient(180deg, #2AABEE 0%, #229ED9 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
    border: none;
}

.tg-login-btn:hover {
    opacity: 0.9;
}

.tg-login-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(10);
}

/* Back link */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.auth-back:hover {
    color: var(--text-primary);
}

/* Error message */
.auth-error {
    color: #f44336;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.auth-error--visible {
    display: block;
}

/* Responsive */
@media (max-width: 640px) {
    .auth-card {
        padding: 32px 24px;
    }
}
