:root {
    --primary: #5542F6;
    --primary-hover: #4534c0;
    --bg-light: #F8F9FE;
    --text-main: #1E232C;
    --text-muted: #8391A1;
    --border: #E8ECF4;
    --white: #FFFFFF;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-main); height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.auth-container { display: flex; width: 100%; max-width: 1200px; height: 100vh; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%235542F6" stroke-opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>') var(--bg-light); }

.info-pane { flex: 1; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; margin-bottom: 40px; }
.main-title { font-size: 42px; line-height: 1.2; margin-bottom: 20px; color: #000; }
.subtitle { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; max-width: 450px; }
.features { display: flex; flex-direction: column; gap: 25px; }
.feature-item { display: flex; gap: 15px; align-items: flex-start; }
.icon-box { width: 40px; height: 40px; background: #EEEBFF; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.feature-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.feature-item p { font-size: 14px; color: var(--text-muted); line-height: 1.4; }

.form-pane { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.form-card { background: var(--white); width: 100%; max-width: 480px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); padding: 40px; display: flex; flex-direction: column; max-height: 90vh; overflow-y: auto; }
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 30px; }
.tab-btn { flex: 1; padding: 15px 0; background: none; border: none; font-size: 16px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: 0.3s; position: relative; }
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: var(--primary); }

.form-wrapper { display: none; }
.form-wrapper.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-wrapper h2 { font-size: 24px; margin-bottom: 10px; }
.form-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 30px; }
.input-group { margin-bottom: 20px; position: relative; }
.input-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text-main); }
.input-group input { width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; transition: 0.3s; outline: none; }
.input-group input:focus { border-color: var(--primary); }
.forgot-pwd { position: absolute; right: 0; top: 0; font-size: 13px; color: var(--primary); text-decoration: none; }
.btn-primary { width: 100%; padding: 15px; background: var(--primary); color: var(--white); border: none; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.3s; margin-top: 10px; }
.btn-primary:hover { background: var(--primary-hover); }

.form-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.form-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
.security-notice { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 12px; color: var(--text-muted); margin-top: 40px; text-align: center; }

.error-msg { color: #dc3545; font-size: 14px; margin-bottom: 15px; display: none; padding: 10px; background: #f8d7da; border-radius: 8px; }
.success-msg { color: #198754; font-size: 14px; margin-bottom: 15px; display: none; padding: 10px; background: #d1e7dd; border-radius: 8px; }

@media (max-width: 992px) {
    .auth-container { flex-direction: column; height: auto; overflow: auto; background: var(--bg-light); }
    .info-pane { display: none; }
    .form-pane { padding: 20px; height: 100vh; align-items: flex-start; }
    .form-card { box-shadow: none; padding: 20px; }
}

/* ============================================================
   Страницы регистрации по приглашению, восстановления пароля
   и публичного текста Политики
   ============================================================ */
.page-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg-light, #F4F7FE); }

/* Юридический блок рядом с действием (разделы 6 и 7 документа о размещении Политики) */
.legal-note { font-size: 12.5px; line-height: 1.5; color: #707EAE; margin: 4px 0 18px; }
.legal-note a { color: #5542F6; }

/* Минимальный нижний блок публичных страниц (раздел 9) */
.legal-footer { margin-top: 22px; padding-top: 16px; border-top: 1px solid #E6EAF2; font-size: 12.5px; color: #A3AED0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.legal-footer a { color: #707EAE; text-decoration: none; }
.legal-footer a:hover { color: #5542F6; text-decoration: underline; }

/* Страница документа */
.doc-page { max-width: 860px; margin: 0 auto; padding: 0 24px 64px; }
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid #E6EAF2; }
.doc-head .logo { margin: 0; }
.doc-back { font-size: 14px; color: #707EAE; text-decoration: none; }
.doc-back:hover { color: #5542F6; }
.doc-body { padding-top: 32px; }
.doc-body h1 { font-size: 26px; line-height: 1.3; color: #1B2559; margin: 0 0 8px; }
.doc-body h1 span { font-size: 18px; font-weight: 500; color: #707EAE; }
.doc-meta { font-size: 13px; color: #A3AED0; margin: 0 0 28px; }
.doc-body h2 { font-size: 17px; color: #1B2559; margin: 30px 0 12px; }
.doc-body p { font-size: 15px; line-height: 1.65; color: #4A5568; margin: 0 0 10px; }
.doc-body ul { margin: 0 0 12px 20px; padding: 0; }
.doc-body li { font-size: 15px; line-height: 1.65; color: #4A5568; margin-bottom: 4px; }
.doc-body a { color: #5542F6; }
.doc-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid #E6EAF2; font-size: 12.5px; color: #A3AED0; }
