/* Стили страниц входа и регистрации: слева голубая панель «о системе», справа форма */

.auth-wrap {
    width: 100%; max-width: 920px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 20px; align-items: stretch;
}
.auth-aside { padding: 36px 34px; display: flex; flex-direction: column; gap: 18px; }
.auth-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; }
.auth-brand i {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.auth-aside h2 { font-size: 30px; letter-spacing: -0.03em; line-height: 1.15; max-width: 380px; margin-top: auto; }
.auth-aside ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.auth-aside li { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.auth-aside li i { width: 32px; height: 32px; border-radius: 50%; background: var(--sky); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.auth-card { padding: 38px 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-card .subtitle { color: var(--text-muted); font-size: 14px; font-weight: 600; margin-bottom: 28px; }

/* === ПОЛЯ С ПЛАВАЮЩЕЙ ПОДПИСЬЮ: подпись внутри поля поднимается при вводе === */
.input-group { position: relative; margin-bottom: 16px; }
.input-group i {
    position: absolute; left: 15px; top: 19px;
    color: var(--text-faint); font-size: 14px;
    transition: color 0.15s;
}
.input-group input {
    width: 100%;
    padding: 24px 14px 9px 42px;
    font-family: inherit; font-size: 15px; font-weight: 600;
    color: var(--text);
    background: var(--surface-2);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.input-group label {
    position: absolute; top: 17px; left: 42px;
    color: var(--text-muted); font-size: 15px; font-weight: 600;
    pointer-events: none; transition: 0.15s ease;
}
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group input:-webkit-autofill ~ label { top: 8px; font-size: 11.5px; color: var(--primary); }
.input-group input:focus ~ i,
.input-group input:not(:placeholder-shown) ~ i { color: var(--primary); }
.input-group input:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--sky); }
.input-group input.invalid { border-color: var(--danger); }

/* Подсказка под полем, видна при фокусе */
.field-hint {
    font-size: 12.5px; font-weight: 500;
    color: var(--text-muted);
    padding-left: 4px;
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease, margin-top 0.2s ease;
}
.input-group input:focus ~ .field-hint { max-height: 60px; opacity: 1; margin-top: 6px; }
.field-hint.error { color: var(--danger); font-weight: 700; max-height: 60px; opacity: 1; margin-top: 6px; }

.auth-btn { width: 100%; padding: 14px; margin-top: 8px; font-size: 15px; }

.auth-footer { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-muted); font-weight: 500; }
.auth-footer a { text-decoration: none; font-weight: 800; }

/* Автозаполнение браузера не должно красить поле в жёлтый */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 40px var(--surface-2) inset;
    -webkit-text-fill-color: var(--text) !important;
}

@media (max-width: 820px) {
    .auth-wrap { grid-template-columns: minmax(0, 440px); justify-content: center; }
    .auth-aside { display: none; }
}
@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; }
    .auth-card h1 { font-size: 24px; }
}

/* === Пароль: кнопка «показать», ссылка «Забыли пароль?» === */
.pw-toggle {
    position: absolute; right: 8px; top: 10px; width: 36px; height: 36px;
    border: none; background: none; color: var(--text-faint); cursor: pointer; border-radius: 10px; font-size: 15px;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--primary); background: var(--sky); outline: none; }
.input-group:has(.pw-toggle) input { padding-right: 48px; }
.auth-forgot { display: block; width: fit-content; margin: -6px 0 4px auto; font-size: 13px; font-weight: 700; text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }
.notification-box.ok { background: var(--success-bg); border-color: transparent; color: var(--success); }
.notification-box.ok i { color: var(--success); }

/* === Одна карточка по центру: подтверждение почты, восстановление пароля, сообщения === */
.auth-single { width: 100%; max-width: 460px; }
.auth-single .auth-card { text-align: left; }
.auth-icon {
    width: 56px; height: 56px; border-radius: 50%; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    background: var(--sky); color: var(--primary);
}
.auth-icon.ok { background: var(--success-bg); color: var(--success); }
.auth-icon.warn { background: var(--warning-bg); color: var(--warning); }
.auth-text { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; margin-bottom: 20px; }
.auth-text b { color: var(--text); }
.auth-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.auth-actions .btn-primary, .auth-actions .btn-ghost { flex: 1; justify-content: center; }
.auth-divider { border: none; border-top: 1px solid var(--line); margin: 22px 0 18px; }
.auth-small { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.auth-inline { display: flex; gap: 8px; }
.auth-inline .input-group { flex: 1; margin-bottom: 0; }
.auth-inline .btn-ghost { flex-shrink: 0; }
.form-ok { color: var(--success); font-weight: 700; font-size: 14px; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
@media (max-width: 480px) {
    .auth-inline { flex-direction: column; }
}
