/* ===== AUTH PAGE ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Декоративные круги на фоне */
.auth-bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: #b84fd6;
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: #8b2fd1;
    bottom: -80px;
    right: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: #6a1fa8;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

/* Контейнер формы */
.auth-container {
    background: rgba(20, 20, 35, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(184, 79, 214, 0.2);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s ease-out;
}

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

/* Логотип */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-badge {
    background: linear-gradient(135deg, #b84fd6 0%, #8b2fd1 100%);
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 18px;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(184, 79, 214, 0.4);
}

/* Переключатель вкладок */
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.auth-tab:hover {
    color: white;
}

.auth-tab.active {
    background: linear-gradient(135deg, #b84fd6 0%, #8b2fd1 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(184, 79, 214, 0.3);
}

/* Формы */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.auth-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #b84fd6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Поля ввода */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: #b84fd6;
    background: rgba(184, 79, 214, 0.05);
    box-shadow: 0 0 0 3px rgba(184, 79, 214, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Опции формы */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #b84fd6;
    cursor: pointer;
}

.forgot-link {
    color: #b84fd6;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #d478e8;
}

.terms-label {
    margin-bottom: 25px;
    font-size: 13px;
}

.terms-label a {
    color: #b84fd6;
    text-decoration: none;
}

/* Кнопка отправки */
.auth-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #b84fd6 0%, #8b2fd1 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(184, 79, 214, 0.4);
}

.auth-submit:active {
    transform: translateY(0);
}

/* Разделитель */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

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

.auth-divider span {
    padding: 0 15px;
}

/* Социальные кнопки */
.social-login {
    display: flex;
    gap: 10px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(184, 79, 214, 0.3);
}

/* Google кнопка */
.google-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(66, 133, 244, 0.5);
}

.google-btn svg {
    width: 20px;
    height: 20px;
}

/* Discord кнопка */
.discord-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-btn:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.5);
}

/* Сообщения */
.auth-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.auth-message.success {
    display: block;
    background: rgba(39, 202, 64, 0.15);
    color: #27ca40;
    border: 1px solid rgba(39, 202, 64, 0.3);
}

.auth-message.error {
    display: block;
    background: rgba(255, 95, 86, 0.15);
    color: #ff5f56;
    border: 1px solid rgba(255, 95, 86, 0.3);
}

/* Ссылка назад */
.back-link {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    position: relative;
    z-index: 10;
}

.back-link:hover {
    color: #b84fd6;
}

/* Адаптивность */
@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
    }

    .auth-title {
        font-size: 22px;
    }

    .social-login {
        flex-direction: column;
    }

    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
/* телефоны: поля 16px, чтобы iOS не зумил страницу; без вылета кругов за экран */
@media (max-width: 480px) {
    .auth-page { padding: calc(24px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom)); justify-content: flex-start; }
    .auth-container { border-radius: 20px; }
    .form-input { font-size: 16px; }
    .auth-tab { padding: 10px; font-size: 14px; }
    .circle-1 { width: 260px; height: 260px; }
    .circle-2 { width: 200px; height: 200px; }
}
