/* Страницы входа / регистрации / восстановления пароля */
html, body { height: 100%; }
body.auth-body, .auth-page { background: #f4f6fb; }
.auth-page {
    min-height: 100vh; display: flex; align-items: stretch;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
}
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }

.auth-aside {
    flex: 1 1 50%; padding: 56px 64px; color: #e8edff;
    background: radial-gradient(1200px 600px at -10% -20%, #4f6bff 0%, transparent 60%),
                radial-gradient(900px 500px at 110% 120%, #22c3a6 0%, transparent 55%),
                #1b2559;
    display: flex; flex-direction: column; justify-content: center;
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.auth-logo {
    width: 44px; height: 44px; border-radius: 12px; background: #fff; color: #3b5bfd;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px;
}
.auth-brand-name { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .2px; }
.auth-headline { font-size: 34px; line-height: 1.2; font-weight: 700; color: #fff; margin: 0 0 18px; max-width: 560px; }
.auth-lead { font-size: 16px; line-height: 1.6; color: #c9d3ff; max-width: 560px; margin: 0 0 32px; }
.auth-features { list-style: none; padding: 0; margin: 0 0 32px; max-width: 560px; }
.auth-features li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.auth-features b { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.auth-features span { color: #b7c3f5; font-size: 14px; }
.auth-ico {
    flex: 0 0 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.12);
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: #fff;
}
.auth-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13px; color: #9fe8d9; }

.auth-main { flex: 1 1 50%; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card {
    width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 36px 32px;
    box-shadow: 0 10px 40px rgba(27,37,89,.10), 0 2px 6px rgba(27,37,89,.06);
}
.auth-card h2 { font-size: 26px; font-weight: 700; margin: 0 0 6px; color: #111827; }
.auth-sub { color: #6b7280; font-size: 14px; margin: 0 0 26px; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.auth-field label a { font-weight: 500; }
.auth-input {
    width: 100%; height: 46px; padding: 0 14px !important; font-size: 15px; color: #111827;
    border: 1px solid #d1d5db; border-radius: 10px; background: #fff; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus { border-color: #3b5bfd; box-shadow: 0 0 0 4px rgba(59,91,253,.15); }
.auth-btn {
    width: 100%; height: 48px; border: 0; border-radius: 10px; font-size: 16px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, #3b5bfd, #5b3bfd); cursor: pointer;
    box-shadow: 0 6px 16px rgba(59,91,253,.30); transition: transform .08s, box-shadow .15s, opacity .15s;
}
.auth-btn:hover { box-shadow: 0 8px 22px rgba(59,91,253,.40); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn[disabled] { opacity: .7; cursor: wait; }
.auth-captcha { margin: 4px 0 18px; min-height: 78px; }
.auth-error {
    background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px;
    padding: 10px 14px; font-size: 14px; margin-bottom: 18px;
}
.auth-info {
    background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; border-radius: 10px;
    padding: 10px 14px; font-size: 14px; margin-bottom: 18px;
}
.auth-note { font-size: 12px; color: #9ca3af; margin: 14px 0 0; text-align: center; line-height: 1.5; }
.auth-switch { text-align: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid #f0f1f5; font-size: 14px; color: #6b7280; }
.auth-page a { color: #3b5bfd; text-decoration: none; }
.auth-page a:hover { text-decoration: underline; }

@media (max-width: 991px) {
    .auth-page { flex-direction: column-reverse; }
    .auth-aside { padding: 36px 20px; }
    .auth-headline { font-size: 24px; }
    .auth-brand { margin-bottom: 20px; }
    .auth-main { padding: 28px 16px; }
    .auth-card { padding: 28px 20px; }
}
