/* =============================================================================
   ТРОН — страницы входа и регистрации (/login, /register).
   Собственные классы af-* — без legacy .input-group/.form-control/.benefit-card,
   которые ломали раскладку. Стилистика главной: белые карточки 16px,
   границы #eef0f4, синий акцент var(--tron-blue).
   ============================================================================= */

/* --- Шапка страницы --- */
.auth-hero { padding: 2.25rem 0 1.5rem; text-align: center; }
.auth-hero h1 { font-size: 1.9rem; font-weight: 800; color: #1f2330; margin: 0 0 6px; }
.auth-hero p { color: #6c757d; margin: 0; font-size: .95rem; }

/* --- Карточка формы --- */
.af-card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow: 0 6px 22px rgba(31, 35, 48, .06);
}

/* --- Поля --- */
.af-field { margin-bottom: 14px; }
.af-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.af-label { display: block; font-size: 13px; font-weight: 600; color: #2b2b2e; margin-bottom: 6px; }
.af-label .req { color: #dc3545; }
.af-input-wrap { position: relative; }
.af-input-wrap > i {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: #9aa0a6; font-size: 14px; pointer-events: none;
}
.af-input {
    display: block; width: 100%;
    height: 46px;
    padding: 0 14px 0 38px;
    font-size: 14.5px;
    color: #2b2b2e;
    background: #fff;
    border: 1px solid #e1e5ee;
    border-radius: 11px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.af-input::placeholder { color: #b3b8c2; }
.af-input:focus { border-color: var(--tron-blue, #2549d8); box-shadow: 0 0 0 3px rgba(37, 73, 216, .12); }
.af-hint { font-size: 11.5px; color: #9aa0a6; margin-top: 4px; }
.af-error { font-size: 12px; color: #dc3545; margin-top: 4px; }
.af-input.is-invalid { border-color: #dc3545; }

/* кнопка-глаз для пароля */
.af-eye {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; min-height: 0;
    border: 0; background: transparent; border-radius: 9px;
    color: #9aa0a6; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.af-eye:hover { color: var(--tron-blue, #2549d8); background: #f3f5fc; }
.af-input-wrap.has-eye .af-input { padding-right: 44px; }

/* --- Чекбоксы --- */
.af-check { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; }
.af-check input {
    flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px;
    accent-color: var(--tron-blue, #2549d8);
}
.af-check label { font-size: 12.5px; color: #51586a; line-height: 1.45; cursor: pointer; }
.af-check a { color: var(--tron-blue, #2549d8); text-decoration: none; }
.af-check a:hover { text-decoration: underline; }

/* --- Кнопки --- */
.af-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 46px;
    border: 0; border-radius: 11px;
    background: var(--tron-blue, #2549d8);
    color: #fff; font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}
.af-btn:hover { background: #1c3ab0; color: #fff; }
.af-btn:active { transform: scale(.99); }
.af-btn-ghost {
    background: #fff;
    color: var(--tron-blue, #2549d8);
    border: 1.5px solid var(--tron-blue, #2549d8);
}
.af-btn-ghost:hover { background: #f3f5fc; color: var(--tron-blue, #2549d8); }

.af-links { text-align: center; margin-top: 14px; }
.af-links a { font-size: 13px; color: #6c757d; text-decoration: none; }
.af-links a:hover { color: var(--tron-blue, #2549d8); }

.af-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 18px 0 14px; color: #9aa0a6; font-size: 12px;
}
.af-divider::before, .af-divider::after { content: ''; flex: 1; height: 1px; background: #eef0f4; }

/* --- Алерты --- */
.af-alert {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 11px 13px; margin-bottom: 14px;
    background: #fdf0f1; border: 1px solid #f5c6cb; border-radius: 11px;
    color: #842029; font-size: 13px;
}
.af-alert i { margin-top: 2px; }

/* --- Плитки-преимущества (как блоки категорий на главной) --- */
.auth-benefits {
    max-width: 480px;
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.auth-benefit {
    display: flex; align-items: center; gap: 11px;
    padding: 13px 15px;
    background: #fff; border: 1px solid #eef0f4; border-radius: 14px;
    font-size: 13px; font-weight: 500; color: #2b2b2e;
}
.auth-benefit i { color: var(--tron-blue, #2549d8); font-size: 19px; flex: 0 0 auto; }

/* --- Мобила --- */
@media (max-width: 575.98px) {
    .auth-hero { padding: 1.5rem 0 1rem; }
    .auth-hero h1 { font-size: 1.4rem; }
    .auth-hero p { font-size: .85rem; }
    .af-card { padding: 18px 14px; border-radius: 14px; }
    .auth-benefit { padding: 11px 12px; font-size: 12px; }
}
