/*
 * Registration page — /register/
 *
 * Centered card hosting the Telegram register button. Desktop can
 * have a custom background image (set via --td-register-bg inline);
 * otherwise the section uses the original neutral surface color.
 */

.td-register {
	padding: 36px 0;            /* top/bottom equal, reduced from 48/80 */
	background: #ffffff;
	min-height: 60vh;
}

/* On mobile, the section breaks out of the .td-shell's 16px side
 * gutter and the .td-main's 16px top padding using negative margins,
 * so the #f8fafc surface extends edge-to-edge and butts straight up
 * against the header. The shell/main themselves aren't modified —
 * other pages keep their normal spacing. */
@media (max-width: 900px) {
	.td-register {
		margin: -16px -16px 0;
	}
}

@media ( min-width: 761px ) {
	/* When the admin has uploaded a desktop background image,
	 * --td-register-bg is set inline on the section. */
	.td-register.has-bg {
		background: var( --td-register-bg ) center / cover no-repeat;
	}
}

.td-register__shell {
	max-width: 480px;
	margin: 0 auto;
	padding: 0 16px;
}

.td-register__head {
	text-align: center;
	margin-bottom: 24px;
}

.td-register__title {
	margin: 0 0 12px;
	font-family: 'Rubik', sans-serif;
	font-size: 23px;
	font-weight: 700;
	color: #1f2937;
	letter-spacing: -0.01em;
}

.td-register__lead {
	margin: 0;
	font-family: 'Rubik', sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #4e7184;
}

/* Card — outer has zero padding now; the head strip and inner body
 * own their own padding so the header strip can extend edge-to-edge
 * (table-header style). */
.td-register__card {
	background: #ffffff;
	border: 1px solid #e4e7ea;
	border-radius: 12px;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, .04 );
}
.td-register__card-head {
	padding: 11px 22px;
	background: #f9f9f9;
	border-bottom: 1px solid #e4e7ea;
	color: #4e7184;
	font-size: 17px;
	font-weight: 600;
	text-align: center;
}
.td-register__card-body {
	padding: 18px 22px 22px;
	text-align: center;
}

/* On mobile the card narrows enough that 22px side padding pinches
 * the «Зареєструватися через Telegram» CTA into two lines. Drop the
 * horizontal padding to give the button the extra width it needs to
 * keep the whole label on a single line, and match the bottom gap to
 * the new side gap (top stays 18px to keep the head-separator
 * breathing room). Desktop is untouched. */
@media (max-width: 900px) {
	.td-register__card-body {
		padding: 18px 8px 8px;
	}
}

/* Bullets (rich text from the admin "what user gets" field, or the
 * dummy emoji list when empty). */
.td-register__bullets {
	text-align: center;
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.55;
	color: #1f2937;
}
.td-register__bullets p { margin: 0 0 8px; }
.td-register__bullets p:last-child { margin-bottom: 0; }
.td-register__bullets ul,
.td-register__bullets ol {
	margin: 0;
	padding-left: 22px;
}
.td-register__bullets ul { padding-left: 0; list-style: none; }
.td-register__bullets li { margin: 6px 0; }
.td-register__bullets strong { color: #1f2937; }
.td-register__bullets a { color: #2dc270; text-decoration: underline; }

.td-register__widget {
	display: flex;
	justify-content: center;
	min-height: 48px;
	margin-bottom: 0;
}

.td-register__status {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 500;
	background: #f2f6f9;
	color: #4e7184;
}

.td-register__status[hidden] {
	display: none;
}

.td-register__status.is-loading {
	background: #f2f6f9;
	color: #4e7184;
}

.td-register__status.is-success {
	background: #d4f5e2;
	color: #1f2937;
}

.td-register__status.is-error {
	background: #fde2e2;
	color: #8a1f1f;
}

.td-register__notice {
	padding: 14px 16px;
	background: #fff3cd;
	color: #8a6700;
	border-radius: 7px;
	font-size: 14px;
	margin-bottom: 0;
}

/* Deeplink mode — "Register via Telegram" CTA, full-width inside
 * the card body. Telegram blue, white text, paper-plane icon. */
.td-tg-deeplink-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px 18px;
	background: #54a9eb;
	color: #ffffff;
	border: 0;
	border-radius: 7px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease;
	margin-bottom: 0;
}
.td-tg-deeplink-btn:hover { background: #2d8fcf; }
.td-tg-deeplink-btn:disabled { opacity: .6; cursor: default; }
.td-tg-deeplink-btn__icon  { flex-shrink: 0; }
