/* Стили для страницы авторизации */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #2C2C2C 0%, #1C1C1C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: rgba(210, 208, 208, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(210, 208, 208, 0.2);
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFC75F, #FFA726);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.auth-header h1 {
    color: var(--white-color);
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 700;
}

.auth-header p {
    color: var(--description-color);
    margin: 0;
    font-size: 16px;
}

/* Алерты */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

/* Формы */
.auth-form {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--white-color);
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(210, 208, 208, 0.3);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(210, 208, 208, 0.1);
    color: var(--white-color);
}

.form-group input:focus {
    outline: none;
    border-color: #FFC75F;
    box-shadow: 0 0 0 3px rgba(255, 199, 95, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--description-color);
    font-size: 12px;
}

/* Переключатель типа аккаунта */
.account-type-toggle {
    display: flex;
    background: rgba(210, 208, 208, 0.1);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.account-type-toggle input[type="radio"] {
    display: none;
}

.toggle-btn {
    flex: 1;
    padding: 10px 15px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: var(--description-color);
    background: transparent;
}

.account-type-toggle input[type="radio"]:checked + .toggle-btn {
    background: #FFC75F;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 199, 95, 0.3);
}

/* Кнопки */
.btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #FFC75F 0%, #FFA726 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 199, 95, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Ссылки */
.auth-links {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.auth-links a {
    color: #FFC75F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #FFA726;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 480px) {
    .auth-box {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-logo {
        width: 60px;
        height: 60px;
    }
    
    .auth-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Анимации для кодов подтверждения */
.form-group input[type="text"][maxlength="4"] {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 5px;
    font-family: 'Courier New', monospace;
}

/* Стили для иконок в алертах */
.alert i {
    font-size: 16px;
}

/* Дополнительные эффекты */
.auth-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Стили для фокуса на кнопках */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 199, 95, 0.3);
}

/* Стили для неактивных элементов */
.form-group input:disabled {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
}

/* Стили для валидации */
.form-group input:invalid {
    border-color: #e53e3e;
}

.form-group input:valid {
    border-color: #38a169;
} 