/* Sign-in and sign-up: brand panel left, panel tone right with one card (the Logto page at auth.thegram.one matches it). */
.welcome {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 100vh;
	background: var(--tg-canvas);
	color: var(--tg-ink);
	font-family: var(--tg-font);
}
.welcome-brand {
	display: flex;
	flex-direction: column;
	padding: 56px;
	border-right: 1px solid var(--tg-line);
}
.welcome-line {
	margin: 0;
	font-size: 26px;
	font-weight: 650;
	line-height: 1.22;
	letter-spacing: -0.02em;
	white-space: pre-line;
}
/* The landing page's echo, drawn smaller: it takes the room between the line and the footer. */
.welcome-echo {
	display: block;
	flex: 1;
	width: 100%;
	min-height: 260px;
	max-height: 520px;
	margin: auto 0;
}
.welcome-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	color: var(--tg-muted);
	font-family: var(--tg-mono);
	font-size: 11px;
}
.welcome-foot a {
	color: inherit;
}
.welcome-side {
	display: grid;
	place-items: center;
	padding: 40px 24px;
	background: var(--tg-panel, #f4f5f7);
}
:root[data-theme="dark"] .welcome-side {
	background: #101012;
}
.welcome-card {
	width: min(420px, 100%);
	padding: 32px 36px;
	border: 1px solid var(--tg-line);
	border-radius: 12px;
	background: var(--tg-canvas);
}
.welcome-card h2 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 650;
}
.welcome-card .lede {
	margin: 0 0 22px;
	color: var(--tg-muted);
	font-size: 13px;
	line-height: 1.5;
}
.welcome-buttons {
	display: grid;
	gap: 10px;
}
.welcome-buttons button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 44px;
	border: 1px solid var(--tg-line);
	border-radius: 8px;
	background: var(--tg-canvas);
	color: var(--tg-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 550;
	cursor: pointer;
}
.welcome-buttons button:hover:not(:disabled) {
	background: var(--tg-hover);
}
.welcome-buttons button.primary {
	border-color: var(--tg-ink);
	background: var(--tg-ink);
	color: var(--tg-canvas);
}
.welcome-buttons button.primary:hover:not(:disabled) {
	background: var(--tg-ink2);
}
.welcome-buttons button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.g-badge {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
}
.welcome-steps {
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}
.welcome-steps li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	border-top: 1px solid var(--tg-line);
	color: var(--tg-ink2);
}
.welcome-steps li:first-child {
	border-top: 0;
}
.welcome-steps li > div {
	flex: 1;
}
.welcome-steps span {
	display: block;
	font-size: 13px;
}
.welcome-steps small,
.welcome-steps i {
	color: var(--tg-muted);
	font-family: var(--tg-mono);
	font-size: 11px;
	font-style: normal;
}
.welcome-note {
	display: flex;
	gap: 10px;
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: 8px;
	background: var(--tg-hover);
	color: var(--tg-ink2);
}
.welcome-note p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.55;
}
.welcome-buttons .welcome-guest,
.welcome-guest {
	display: block;
	width: 100%;
	height: auto;
	margin-top: 14px;
	padding: 6px;
	border: 0;
	background: none;
	color: var(--tg-muted);
	font: inherit;
	font-size: 12.5px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.consent-birth {
	display: grid;
	gap: 6px;
	margin-bottom: 18px;
	font-size: 13px;
	font-weight: 550;
}
.consent-birth input {
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--tg-line);
	border-radius: 8px;
	background: var(--tg-canvas);
	color: var(--tg-ink);
	font: inherit;
}
.consent-all {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--tg-line);
	font-size: 14px;
	font-weight: 600;
}
.consent-list {
	padding: 6px 0 12px;
}
.consent-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 0;
	font-size: 13px;
}
.consent-row label {
	display: flex;
	align-items: center;
	gap: 10px;
}
.consent-row a {
	flex: none;
	color: var(--tg-muted);
	font-size: 12px;
}
.welcome-card input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--tg-ink);
}
.consent-summary {
	width: 100%;
	margin-bottom: 12px;
	border-collapse: collapse;
	font-size: 12px;
}
.consent-summary th,
.consent-summary td {
	padding: 6px 8px;
	border: 1px solid var(--tg-line);
	text-align: left;
	vertical-align: top;
}
.consent-summary th {
	width: 84px;
	color: var(--tg-muted);
	font-weight: 500;
}
.consent-hint {
	margin: 0 0 14px;
	color: var(--tg-muted);
	font-size: 12px;
	line-height: 1.5;
}
.welcome-error {
	margin: 0 0 10px;
	color: var(--tg-danger, #d92d20);
	font-size: 12.5px;
}
.welcome-error:empty {
	display: none;
}
@media (max-width: 860px) {
	.welcome {
		grid-template-columns: 1fr;
	}
	.welcome-brand {
		padding: 28px 24px;
		border-right: 0;
		border-bottom: 1px solid var(--tg-line);
	}
	.welcome-hero {
		margin: 28px 0;
	}
	.welcome-hero h1 {
		font-size: 26px;
	}
	.welcome-foot {
		display: none;
	}
}
