/* auth.css - стили для логина и регистрации */

.auth-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0e6d8;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: #4a3727;
    font-weight: 600;
}

.auth-card h2 i {
    color: #d4a574;
    margin-right: 8px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #5a4a3a;
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: white;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.2);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #999;
    transition: color 0.2s;
    padding: 0;
}

.password-toggle:hover {
    color: #4a3727;
}

.btn-auth {
    width: 100%;
    padding: 12px;
    background: #d4a574;
    color: #2c1e0e;
    border: none;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-auth:hover {
    background: #c48b56;
    transform: translateY(-1px);
}

.auth-alert {
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.auth-alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #e74c3c;
}

.auth-alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #27ae60;
}

.auth-alert-info {
    background: #e2f0fb;
    color: #0c5460;
    border-left: 3px solid #17a2b8;
}

.auth-link {
    color: #d4a574;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #c48b56;
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 16px;
}

.mt-2 {
    margin-top: 10px;
}

/* Таймер и кнопка повторной отправки */
.resend-block {
    margin-top: 20px;
    text-align: center;
}

.timer-text {
    font-size: 0.8rem;
    color: #7a6852;
    margin-bottom: 10px;
}

.btn-resend-code {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 40px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-resend-code:hover {
    background: #e0e0e0;
    border-color: #d4a574;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .auth-page {
        min-height: calc(100vh - 120px);
        padding: 20px 16px;
    }
    
    .auth-card {
        padding: 24px 20px;
    }
    
    .auth-card h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group input {
        padding: 9px 12px;
        font-size: 0.85rem;
    }
    
    .btn-auth {
        padding: 10px;
        font-size: 0.85rem;
    }
}