/* ══════════════════════════════════════════════════════════════════
   athlete_login.css — Страница входа / регистрации спортсмена
   ══════════════════════════════════════════════════════════════════ */

/* ── Обёртка страницы ──────────────────────────────────────────── */
.al-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
    padding: 20px;
    box-sizing: border-box;
}
.al-wrap {
    width: 100%;
    max-width: 460px;
}

/* ── Лого ──────────────────────────────────────────────────────── */
.al-logo {
    text-align: center;
    margin-bottom: 28px;
}
.al-logo-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    line-height: 1;
}
.al-logo-title span { color: var(--gold); }
.al-logo-sub {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-top: 4px;
}

/* ── Карточка ──────────────────────────────────────────────────── */
.al-card {
    background: var(--bg);
    border-radius: var(--radius-lg) ;
    padding: 36px 32px 32px;
    box-shadow: var(--neu-out);
}

/* ── Табы ──────────────────────────────────────────────────────── */
.al-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: var(--bg);
    box-shadow: var(--neu-in);
    border-radius: var(--radius-sm) ;
    padding: 5px;
    margin-bottom: 28px;
}
.al-tab {
    padding: 10px 8px;
    text-align: center;
    border-radius: var(--radius-xs);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.al-tab.active {
    background: var(--bg);
    box-shadow: var(--neu-out-sm);
    color: var(--primary);
}
.al-tab:hover:not(.active) { color: var(--accent); }

/* ── Формы ─────────────────────────────────────────────────────── */
.al-form { display: none; }
.al-form.active { display: block; }

.al-group {
    margin-bottom: 18px;
}
.al-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 7px;
}
.al-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    border: none;
    border-radius: var(--radius-sm) ;
    box-shadow: var(--neu-in);
    outline: none;
    transition: box-shadow 0.2s;
}
.al-input:focus {
    box-shadow: var(--neu-in), 0 0 0 2px rgba(45, 90, 142, 0.18);
}
.al-input::placeholder { color: var(--muted); opacity: 0.7; }

/* ── Метод сброса ──────────────────────────────────────────────── */
.al-method-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
}
.al-method-btn {
    padding: 11px 10px;
    background: var(--bg);
    border: none;
    border-radius: var(--radius-sm) ;
    box-shadow: var(--neu-out-sm);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.al-method-btn.active,
.al-method-btn:hover {
    box-shadow: var(--neu-in);
    color: var(--accent);
}

/* ── Кнопка submit ─────────────────────────────────────────────── */
.al-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm) ;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 4px 4px 10px rgba(45, 90, 142, 0.3), -2px -2px 6px #fff;
    margin-top: 6px;
}
.al-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 6px 6px 14px rgba(26, 58, 92, 0.3), -2px -2px 8px #fff;
}
.al-btn:active {
    transform: translateY(0);
    box-shadow: var(--neu-in);
}
.al-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

/* ── Уведомления ───────────────────────────────────────────────── */
.al-msg {
    display: none;
    padding: 12px 15px;
    border-radius: var(--radius-sm) ;
    font-size: 0.87rem;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: center;
}
.al-msg.error   { background: #fff0f0; color: #c0392b; box-shadow: inset 2px 2px 6px #f5c6cb; }
.al-msg.success { background: #f0fff4; color: #27ae60; box-shadow: inset 2px 2px 6px #b7e4c7; }
.al-msg.info    { background: #f0f5ff; color: var(--accent); box-shadow: inset 2px 2px 6px #c3d3f0; }

/* ── Подсказка ─────────────────────────────────────────────────── */
.al-hint {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}
.al-hint a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}
.al-hint a:hover { text-decoration: underline; }

/* ── Ссылка на главную ─────────────────────────────────────────── */
.al-back {
    text-align: center;
    margin-top: 22px;
}
.al-back a {
    font-size: 0.82rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.al-back a:hover { color: var(--primary); }

/* ── Инфо-блок умной привязки ──────────────────────────────────── */
.al-link-info {
    background: var(--bg);
    box-shadow: var(--neu-in);
    border-radius: var(--radius-sm) ;
    padding: 12px 15px;
    font-size: 0.80rem;
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.5;
}
.al-link-info strong { color: var(--accent); }

/* ── Подсказки под полями ──────────────────────────────────────── */
.al-field-hint {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 6px;
    padding-left: 2px;
    line-height: 1.4;
}

/* ── Индикатор силы пароля ─────────────────────────────────────── */
.al-pass-strength {
    height: 4px;
    border-radius: 4px;
    margin-top: 8px;
    background: transparent;
    transition: background 0.3s, width 0.3s;
}
.al-pass-strength.weak   { background: linear-gradient(90deg, #e74c3c 33%, #eee 33%); }
.al-pass-strength.medium { background: linear-gradient(90deg, #f39c12 66%, #eee 66%); }
.al-pass-strength.strong { background: #27ae60; }

/* ── Мобильная адаптация ───────────────────────────────────────── */
@media (max-width: 480px) {
    .al-card { padding: 28px 20px 24px; border-radius: var(--radius) ; }
    .al-logo-title { font-size: 2.1rem; }
}

/* ── Кнопка На главную ─────────────────────────────────────────── */
.al-home-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 22px;
    background: var(--bg);
    border-radius: var(--radius-sm) ;
    box-shadow: var(--neu-out-sm);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s;
}
.al-home-btn:hover {
    box-shadow: var(--neu-in);
    color: var(--primary);
}

/* ── Кликабельный логотип ──────────────────────────────────────── */
.al-logo-link {
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
}
.al-logo-link:hover { opacity: 0.8; }

/* ── Фикс input[type=date] на iOS / мобилках ───────────────────── */
input[type=date].al-input {
    -webkit-appearance: none;
    appearance: none;
    color: var(--text);
    min-height: 48px;
    line-height: 1.4;
}
input[type=date].al-input::-webkit-date-and-time-value {
    text-align: left;
    padding: 0;
    min-height: 24px;
}
/* Плейсхолдер до выбора даты */
input[type=date].al-input:not([value]):not(:focus) {
    color: rgba(26,41,64,0.4);
}

/* ── Чекбоксы согласия ────────────────────────────────────────── */
.al-consents {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
.al-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
/* Скрываем нативный чекбокс */
.al-consent-cb {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
/* Кастомный нейморфный квадрат */
.al-consent-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-xs) ;
    background: var(--bg);
    box-shadow: var(--neu-in);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: box-shadow 0.18s;
    position: relative;
}
/* Галочка — скрыта по умолчанию */
.al-consent-box::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid var(--accent);
    border-top: none;
    border-left: none;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
    margin-top: -2px;
}
/* Чекнуто */
.al-consent-cb:checked + .al-consent-box {
    box-shadow: var(--neu-in);
}
.al-consent-cb:checked + .al-consent-box::after {
    transform: rotate(45deg) scale(1);
}
.al-consent-text {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 600;
}
.al-consent-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}
.al-consent-link:hover { opacity: 0.75; }
/* Ошибка — подсветка */
.al-consent-error .al-consent-box {
    box-shadow: var(--neu-in), 0 0 0 2px rgba(231,76,60,0.4);
}
.al-consent-error .al-consent-text {
    color: #e74c3c;
}
/* Сброс ошибки при клике */
.al-consent-label:active .al-consent-box,
.al-consent-label:focus-within .al-consent-box {
    box-shadow: var(--neu-in), 0 0 0 2px rgba(45,90,142,0.2);
}

/* ── Подпись под чекбоксами ───────────────────────────────────── */
.al-consent-note {
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 6px 0 0;
    font-weight: 500;
    opacity: 0.8;
}
.al-consent-note .al-consent-link {
    font-weight: 600;
    font-size: inherit;
}

/* ── Подпись под чекбоксами ───────────────────────────────────── */
.form__note {
    font-size: 0.73rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 8px 0 0;
    font-weight: 500;
}
.form__note a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}
.form__note a:hover { opacity: 0.75; }
