/* css/auth.css */

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }
body { background-color: #f7fafc; color: #2d3748; line-height: 1.6; }

/* Шапка сайта (Navbar) */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 10%; background: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.logo { font-size: 24px; font-weight: 800; color: #764ba2; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.nav-buttons { display: flex; gap: 15px; }
.btn { padding: 10px 22px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: 0.2s; border: none; text-decoration: none; }
.btn-outline { background: transparent; color: #764ba2; border: 2px solid #764ba2; }
.btn-outline:hover { background: #f3ebff; }
.btn-primary { background: #764ba2; color: #fff; box-shadow: 0 4px 6px rgba(118, 75, 162, 0.2); }
.btn-primary:hover { background: #5c3782; transform: translateY(-1px); }

/* Главный блок (Hero Section) */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 100px 10% 80px; background: linear-gradient(135deg, #f5f7ff 0%, #ede8f5 100%); }
.hero h1 { font-size: 48px; font-weight: 800; color: #1a202c; max-width: 800px; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: #764ba2; }
.hero p { font-size: 18px; color: #4a5568; max-width: 600px; margin-bottom: 35px; }
.hero .btn-primary { padding: 15px 40px; font-size: 18px; }

/* Блок преимуществ (Features) */
.features { padding: 80px 10%; max-width: 1200px; margin: 0 auto; text-align: center; }
.features h2 { font-size: 32px; font-weight: 700; margin-bottom: 50px; color: #1a202c; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: #fff; padding: 40px 30px; border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; text-align: left; transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.card-icon { font-size: 32px; margin-bottom: 20px; display: inline-block; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: #2d3748; }
.card p { color: #718096; font-size: 15px; }

/* ПОП-АП ОКНО (Modal) */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: #fff; width: 100%; max-width: 420px; padding: 35px; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); position: relative; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.close-modal { position: absolute; top: 20px; right: 25px; font-size: 24px; color: #aaa; cursor: pointer; border: none; background: none; }
.close-modal:hover { color: #333; }

/* Табы внутри модалки */
.modal-tabs { display: flex; margin-bottom: 25px; border-bottom: 2px solid #edf2f7; }
.tab-btn { background: none; border: none; padding: 10px; font-size: 16px; font-weight: 600; color: #a0aec0; cursor: pointer; width: 50%; text-align: center; transition: 0.2s; }
.tab-btn.active { color: #764ba2; border-bottom: 3px solid #764ba2; margin-bottom: -2px; }

/* Стили форм */
.form-panel { display: none; }
.form-panel.active { display: block; }
.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; font-size: 13px; color: #4a5568; margin-bottom: 6px; font-weight: 600; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #cbd5e0; border-radius: 8px; font-size: 14px; outline: none; transition: 0.2s; }
.form-group input:focus { border-color: #764ba2; box-shadow: 0 0 0 3px rgba(118,75,162,0.15); }
.submit-btn { width: 100%; padding: 12px; background: #764ba2; border: none; border-radius: 8px; color: #fff; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.2s; margin-top: 10px; }
.submit-btn:hover { background: #5c3782; }
.error-message { color: #e53e3e; font-size: 13px; margin-top: 12px; display: none; background: #fff5f5; padding: 10px; border-radius: 6px; border-left: 4px solid #e53e3e; }

/* Группа ввода для пароля с иконкой "Глаз" */
.input-group { position: relative; display: flex; align-items: center; width: 100%; }
.input-group input { padding-right: 45px; }
.toggle-password-btn { position: absolute; right: 4px; background: none; border: none; color: #a0aec0; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; height: 90%; padding: 0 10px; border-radius: 6px; transition: 0.2s; z-index: 5; }
.toggle-password-btn:hover { color: #764ba2; background-color: #f7fafc; }

/* Чекбокс Запомнить меня */
.checkbox-group { display: flex; align-items: center; gap: 8px; margin-top: 5px; margin-bottom: 15px; }
.checkbox-group input[type="checkbox"] { width: auto; cursor: pointer; margin: 0; }
.checkbox-group label { margin: 0; cursor: pointer; font-size: 14px; color: #4a5568; font-weight: 500; }

/* Новые стили для формы восстановления и экшенов */
.form-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 15px;
}
.form-actions-row .checkbox-group {
    margin: 0; /* Сбрасываем внешние отступы, так как они теперь внутри флекса */
}
.forgot-link {
    font-size: 13px;
    color: #764ba2;
    text-decoration: none;
    font-weight: 600;
}
.forgot-link:hover {
    text-decoration: underline;
    color: #5c3782;
}
.forgot-header {
    text-align: center;
    margin-bottom: 20px;
}
.forgot-header h3 {
    font-size: 20px;
    color: #1a202c;
    margin-bottom: 8px;
}
.forgot-header p {
    font-size: 14px;
    color: #718096;
    line-height: 1.4;
}
.back-to-login {
    text-align: center;
    margin-top: 20px;
}
.back-to-login a {
    font-size: 14px;
    color: #718096;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}
.back-to-login a:hover {
    color: #764ba2;
}