/* signup.css — страница регистрации. Префикс su-. Чекбоксы согласий (#az_agree) — из auth.css. */

.su-page { background: var(--tl-bg); }
.su { width: 100%; }

/* ================= ВЕРХ: небо над хребтом (ночь — тёмная тема, день — в конце файла) ================= */
.su-top {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	padding: 56px 0 100px;
	color: #eef1fa;
	background:
		radial-gradient(900px 420px at 88% 0%, rgba(160, 78, 255, .42), transparent 62%),
		radial-gradient(800px 420px at 0% 25%, rgba(0, 141, 254, .32), transparent 60%),
		linear-gradient(180deg, #060918 0%, #0b1036 60%, #131b5c 100%);
	overflow: hidden;
}
/* Волна-переход к контенту внизу — partials/ridge (класс su-ridge), высота — в css/ridge.css */

.su-grid {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	max-width: 1080px;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 56px) 16px 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
@media (min-width: 960px) {
	.su-grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; }
}

.su-title {
	font-family: var(--tl-font-display);
	font-weight: 700;
	font-size: clamp(32px, 4.8vw, 58px);
	line-height: 1.02;
	letter-spacing: -0.04em;
	color: #fff;
	margin: 0 0 18px;
	max-width: 12ch;
}
.su-lead {
	font-size: clamp(16px, 1.6vw, 18.5px);
	line-height: 1.55;
	color: #b9c1e2;
	margin: 0 0 34px;
	max-width: 34em;
}

/* Три шага — настоящая последовательность, поэтому с номерами */
.su-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 22px;
	position: relative;
}
.su-steps::before {
	content: "";
	position: absolute;
	left: 17px;
	top: 20px;
	bottom: 20px;
	width: 2px;
	background: linear-gradient(180deg, #ff2d8a, #a04eff 40%, rgba(160, 78, 255, .25));
}
.su-step {
	position: relative;
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	column-gap: 16px;
	row-gap: 3px;
}
.su-step__n {
	grid-row: 1 / span 2;
	position: relative;
	z-index: 1;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--tl-font-display);
	font-weight: 700;
	font-size: 14px;
	color: #fff;
	background: #1c2266;
	box-shadow: 0 0 0 2px rgba(160, 78, 255, .7);
}
.su-step.is-now .su-step__n { background: var(--tl-magenta); box-shadow: 0 0 0 5px rgba(229, 0, 127, .22); }
.su-step__t { font-size: 16.5px; font-weight: 700; color: #fff; margin-top: 7px; }
.su-step__d { font-size: 14px; line-height: 1.5; color: #aab2d6; max-width: 40ch; }

/* ================= ФОРМА ================= */
.su-card {
	background: var(--tl-surface);
	color: var(--tl-ink);
	border-radius: 28px;
	padding: 28px 26px 22px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
	border: 1px solid var(--tl-line);
}
.su-card__title {
	font-family: var(--tl-font-display);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: -0.02em;
	margin: 0 0 18px;
	color: var(--tl-ink);
}
.su-error:empty { display: none; }
.su-error {
	background: var(--tl-magenta-soft);
	color: var(--tl-danger);
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 14px;
	line-height: 1.45;
	margin: 0 0 16px;
}

.su-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.su-label { font-size: 13.5px; font-weight: 600; color: var(--tl-ink-2); }
.su-field .text_input { margin: 0; }
.su-hint { font-size: 12.5px; line-height: 1.4; color: var(--tl-ink-3); min-height: 1em; }
.su-hint:empty { display: none; }
.su-hint.is-ok { color: var(--tl-green); }
.su-hint.is-bad { color: var(--tl-danger); }
.su-field .text_input.is-bad { border-color: var(--tl-danger); }
.su-field .text_input.is-ok { border-color: var(--tl-green); }

.su-pass { position: relative; }
.su-pass .text_input { padding-right: 46px; }
.su-eye {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--tl-ink-3);
	cursor: pointer;
	font-size: 16px;
}
.su-eye:hover { color: var(--tl-ink); background: var(--tl-surface-3); }

.su-meter { display: block; height: 4px; border-radius: 4px; background: var(--tl-surface-3); overflow: hidden; }
.su-meter span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--tl-danger); transition: width .25s ease, background-color .25s ease; }

.su-card #az_agree { margin: 6px 0 4px; }
/* Подпись в потоке (а не поверх), чтобы переносы строк не наезжали на соседнюю отметку */
.su-card #az_agree .agree-row { display: flex; align-items: flex-start; min-height: 0; margin-bottom: 10px; }
.su-card #az_agree .agree-row input[type='checkbox'] { flex: none; }
.su-card #az_agree .agree-row label {
	position: relative;
	left: auto;
	top: auto;
	right: auto;
	flex: 1;
	min-height: 22px;
	margin-left: -22px;
	padding: 3px 0 0 32px;
	font-size: 12.5px;
	line-height: 1.35;
	color: var(--tl-ink-2);
}
.su-card #az_agree.is-bad label::before { border-color: var(--tl-danger); }

.su-submit { width: 100%; height: 54px !important; margin-top: 10px; font-size: 16.5px !important; }
.su-login { text-align: center; font-size: 14px; color: var(--tl-ink-3); margin: 14px 0 0; }
.su-login a, .su-login a:visited { color: var(--tl-blue); font-weight: 600; }

/* ================= НИЖЕ: информация ================= */
.su-wrap {
	box-sizing: border-box;
	max-width: 1080px;
	margin: 0 auto;
	padding: 30px 16px 90px;
}

.su-trust {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	padding: 6px 0 10px;
}
@media (min-width: 760px) { .su-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.su-trust__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--tl-ink-2); }
.su-trust__item b { color: var(--tl-ink); }
.su-trust__item i {
	width: 40px; height: 40px; border-radius: 13px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--tl-surface); box-shadow: var(--tl-shadow-1);
	color: var(--tl-blue); font-size: 16px;
}

.su-section { margin-top: clamp(44px, 6vw, 70px); }
.su-h2 {
	font-family: var(--tl-font-display);
	font-weight: 700;
	font-size: clamp(24px, 3.4vw, 34px);
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--tl-ink);
	margin: 0 0 10px;
}
.su-sub { font-size: 15.5px; line-height: 1.6; color: var(--tl-ink-2); margin: 0 0 22px; max-width: 62ch; }

/* Таблица возможностей */
.su-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.su-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
@media (max-width: 560px) {
	.su-table { font-size: 13px; table-layout: fixed; }
	.su-table thead th:first-child { width: 38%; }
	.su-table th, .su-table td { padding: 11px 6px; }
	.su-table thead th { font-size: 13px; padding: 10px 3px; line-height: 1.2; }
}
.su-table th, .su-table td { padding: 13px 14px; border-bottom: 1px solid var(--tl-line); text-align: center; }
.su-table thead th { font-size: 11px; font-weight: 600; color: var(--tl-ink-3); border-bottom-color: transparent; }
.su-table tbody th { text-align: left; font-weight: 500; color: var(--tl-ink); }
.su-table__hl { background: var(--tl-blue-soft); }
.su-table thead .su-table__hl { color: var(--tl-blue); border-radius: 14px 14px 0 0; }
.su-table tbody tr:last-child .su-table__hl { border-radius: 0 0 14px 14px; }
.su-table tbody tr:last-child th, .su-table tbody tr:last-child td { border-bottom: 0; }
.su-yes { color: var(--tl-green); font-size: 15px; }
.su-no { color: var(--tl-ink-3); }

/* Роли */
.su-roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 18px; }
.su-role {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid var(--tl-line);
	background: var(--tl-surface);
	color: var(--tl-ink);
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
}
.su-role i { color: var(--tl-ink-3); }
.su-role:hover { border-color: var(--tl-ink-3); }
.su-role.is-on { background: var(--tl-ink); color: var(--tl-surface); border-color: var(--tl-ink); }
.su-role.is-on i { color: inherit; }

.su-panel {
	background: var(--tl-surface);
	border: 1px solid var(--tl-line);
	border-radius: 24px;
	padding: clamp(20px, 3vw, 30px);
	box-shadow: var(--tl-shadow-1);
}
.su-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .su-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.su-benefits li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.55; color: var(--tl-ink); }
.su-benefits li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--tl-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a9f5a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.su-tip { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding-top: 16px; border-top: 1px dashed var(--tl-line); font-size: 14px; color: var(--tl-ink-2); line-height: 1.5; }
.su-tip i { color: var(--tl-amber); margin-top: 3px; }

/* FAQ */
.su-faq { display: grid; gap: 8px; margin-top: 18px; }
.su-faq details { background: var(--tl-surface); border: 1px solid var(--tl-line); border-radius: 16px; padding: 0 18px; }
.su-faq summary { list-style: none; cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; font-size: 15.5px; color: var(--tl-ink); position: relative; }
.su-faq summary::-webkit-details-marker { display: none; }
.su-faq summary::after {
	content: ""; position: absolute; right: 2px; top: 50%;
	width: 9px; height: 9px;
	border-right: 2px solid var(--tl-ink-3); border-bottom: 2px solid var(--tl-ink-3);
	transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.su-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.su-faq details p { margin: 0 0 16px; color: var(--tl-ink-2); line-height: 1.6; font-size: 14.5px; }
.su-faq a { color: var(--tl-blue); text-decoration: underline; text-underline-offset: 3px; }

/* Шапка поверх верха страницы; белые значки — только над ночным небом (тёмная тема) */
.su-page #header:not(.header-scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-theme="dark"] .su-page #header:not(.header-scrolled) .tl-logo,
[data-theme="dark"] .su-page #header:not(.header-scrolled) .hdr-btn { color: #fff; }
[data-theme="dark"] .su-page #header:not(.header-scrolled) #searchmap { color: #7fb7ff; }
[data-theme="dark"] .su-page #header:not(.header-scrolled) #liked { color: #ff6fa8; }
[data-theme="dark"] .su-page #header:not(.header-scrolled) .hdr-btn:hover { background: rgba(255, 255, 255, .12); }
[data-theme="dark"] .su-page #header:not(.header-scrolled) .hdr-login,
[data-theme="dark"] .su-page #header:not(.header-scrolled) .hdr-login:visited { background: #fff; color: #0e1433; }

/* ================= СВЕТЛАЯ ТЕМА: дневное небо над хребтом ================= */
html:not([data-theme="dark"]) .su-top {
	color: var(--tl-ink);
	background:
		radial-gradient(900px 420px at 88% 0%, rgba(160, 78, 255, .20), transparent 62%),
		radial-gradient(800px 420px at 0% 25%, rgba(0, 141, 254, .16), transparent 60%),
		radial-gradient(520px 300px at 70% 85%, rgba(255, 0, 180, .09), transparent 70%),
		linear-gradient(180deg, #f6f7ff 0%, #eef1ff 55%, #e3e8ff 100%);
}
html:not([data-theme="dark"]) .su-title { color: var(--tl-ink); }
html:not([data-theme="dark"]) .su-lead { color: var(--tl-ink-2); }
html:not([data-theme="dark"]) .su-steps::before { background: linear-gradient(180deg, #ff2d8a, #a04eff 40%, rgba(160, 78, 255, .2)); }
html:not([data-theme="dark"]) .su-step__n { background: #fff; color: var(--tl-ink); box-shadow: 0 0 0 2px rgba(160, 78, 255, .55), 0 6px 16px rgba(40, 50, 140, .12); }
html:not([data-theme="dark"]) .su-step.is-now .su-step__n { background: var(--tl-magenta); color: #fff; box-shadow: 0 0 0 5px rgba(229, 0, 127, .16); }
html:not([data-theme="dark"]) .su-step__t { color: var(--tl-ink); }
html:not([data-theme="dark"]) .su-step__d { color: var(--tl-ink-2); }
html:not([data-theme="dark"]) .su-card { box-shadow: 0 30px 80px rgba(40, 50, 140, .16), 0 2px 6px rgba(14, 20, 51, .04); border-color: rgba(14, 20, 51, .06); }

/* ================= ВОССТАНОВЛЕНИЕ ДОСТУПА (/vosstanovit-dostup, /novyi-parol) =================
   Та же раскладка, что у входа и регистрации; внутри карточки — прежняя разметка шагов. */
.gp-card .step { border: 0; margin: 0; padding: 0; }
.gp-card .step + .step { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--tl-line); }
.gp-card .step-title { display: flex; align-items: center; gap: 2px; margin: 0 0 10px; font-size: 13.5px; font-weight: 600; color: var(--tl-ink-2); }
.gp-card .step-title i { color: var(--tl-blue); }
.gp-card .step-content p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: var(--tl-ink-2); }
.gp-card .step-content p:first-child { color: var(--tl-ink); }
.gp-card .text_input { margin: 0 0 12px; }
.gp-card .button_menu { padding: 4px 0 0; }
.gp-card .button_menu .submit_button { width: 100%; height: 52px; }
.gp-card .code-label { font-size: 14px; color: var(--tl-ink-2); margin: 0 0 10px; }
.gp-card .code-input { text-align: center; font-size: 22px !important; font-weight: 600; letter-spacing: .3em; }
.gp-card .code-text-block { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--tl-surface-2); font-size: 13px; line-height: 1.5; color: var(--tl-ink-2); }
.gp-card .resend-link, .gp-card .resend-link:visited { color: var(--tl-blue); font-weight: 600; font-size: 14px; }
.gp-card .password-requirements { margin: -4px 0 12px; font-size: 13px; color: var(--tl-ink-3); }
.gp-card .password-requirements .fa-check-circle { color: var(--tl-green); margin-right: 6px; }
.gp-card .button_menu_text { text-decoration: none; font-size: 13px; color: var(--tl-ink-3); margin-top: 10px; }
.gp-card .back_button_link { width: 100%; }

/* Подписи «необязательно», итог регистрации по одобрению и закрытая регистрация */
.su-opt { font-weight: 500; color: var(--tl-ink-3); font-size: .9em; }
.su-note { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--tl-ink-2); }
