html {
	height: auto;
	min-height: 100%;
	overflow-y: auto;
}

body {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	height: auto;
	min-height: 100vh;
	font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

body > main {
	flex: 1 0 auto;
}

body > footer {
	flex-shrink: 0;
}

.card {
	max-width: 620px;
	margin: 0 auto;
	padding: 16px;
	border: 1px solid lightgray;
	border-radius: 16px;
}

.card h1 {
	font-size: 16px;
	margin-top: 0;
}

.card p {
	color: rgb(107, 114, 128);
	font-size: 15px;
	margin-bottom: 10px;
	margin-top: 5px;
}

.card p:last-child {
	margin-bottom: 0;
}

.content-page {
	padding: 80px 0;
}

.content-container {
	width: 100%;
	max-width: 768px;
	margin: 0 auto;
	padding: 0 16px;
}

.content-title {
	margin: 0 0 24px;
	color: rgb(31, 41, 55);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
}

.content-lead {
	margin: 0 0 32px;
	color: rgb(75, 85, 99);
	font-size: 15px;
	line-height: 1.6;
}

.content-lead + .content-lead {
	margin-top: -16px;
}

.content-body {
	display: grid;
	gap: 24px;
	color: rgb(75, 85, 99);
	font-size: 14px;
	line-height: 1.6;
}

.content-section {
	display: grid;
	gap: 12px;
}

.content-heading {
	margin: 0;
	color: rgb(31, 41, 55);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
}

.content-body p {
	margin: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.content-body ul,
.content-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.content-body li {
	position: relative;
	margin: 0;
	padding-left: 18px;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.content-body ul li::before {
	content: "-";
	position: absolute;
	left: 0;
	color: inherit;
}

.content-body a {
	color: rgb(14, 165, 233);
	text-decoration: none;
	transition: color 0.2s ease;
}

.content-body a:hover {
	color: rgb(2, 132, 199);
	text-decoration: underline;
}

.content-body strong {
	color: rgb(31, 41, 55);
	font-weight: 600;
}

.site-link {
	color: rgb(75, 85, 99);
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-link:hover {
	color: rgb(14, 165, 233);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	justify-content: center;
	font-size: 14px;
}

.footer-copy {
	font-size: 14px;
}

.footer-links a {
	color: rgb(156, 163, 175);
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-links a:hover {
	color: rgb(255, 255, 255);
}

.auth-page {
	position: relative;
	display: block;
	height: auto;
	min-height: 100dvh;
	overflow-x: hidden;
	overflow-y: auto;
	background:
		radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.12), transparent 24%),
		radial-gradient(circle at 82% 16%, rgba(99, 102, 241, 0.12), transparent 26%),
		linear-gradient(180deg, #f8fcff 0%, #ffffff 52%, #f9fbff 100%);
}

.auth-page::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.9), transparent 18%),
		radial-gradient(circle at 78% 14%, rgba(255, 255, 255, 0.85), transparent 16%);
	pointer-events: none;
}

.auth-main {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	height: auto;
	min-height: 100dvh;
	padding: 40px 24px;
}

html,
body.auth-page {
	overflow-x: hidden;
}

body.auth-page {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.auth-shell {
	width: 100%;
	max-width: 480px;
	display: grid;
	gap: 32px;
	align-items: center;
	justify-items: center;
}

.auth-card {
	width: 100%;
	border: 1px solid rgba(209, 213, 219, 0.8);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 24px 60px rgba(148, 163, 184, 0.18);
	padding: 32px;
	backdrop-filter: blur(6px);
}

.auth-tab {
	border: none;
	border-radius: 14px;
	background: transparent;
	padding: 12px 16px;
	color: rgb(75, 85, 99);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.auth-tab:hover {
	color: rgb(31, 41, 55);
}

.auth-panel[hidden] {
	display: none;
}

.auth-card-title {
	margin: 0 0 32px;
	color: rgb(31, 41, 55);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
}

.auth-form {
	display: grid;
	gap: 18px;
}

.auth-field {
	display: grid;
	gap: 8px;
}

.auth-label {
	color: rgb(55, 65, 81);
	font-size: 14px;
	font-weight: 600;
}

.auth-input {
	width: 100%;
	border: 1px solid rgb(209, 213, 219);
	border-radius: 14px;
	background: white;
	padding: 14px 16px;
	color: rgb(31, 41, 55);
	font-size: 16px;
	line-height: 1.5;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input::placeholder {
	color: rgb(156, 163, 175);
}

.auth-input:focus {
	outline: none;
	border-color: rgb(14, 165, 233);
	box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.auth-input.is-invalid {
	border-color: rgb(239, 68, 68);
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.auth-error {
	display: none;
	color: rgb(220, 38, 38);
	font-size: 13px;
	line-height: 1.5;
}

.auth-error.is-visible {
	display: block;
}

.auth-hint {
	color: rgb(107, 114, 128);
	font-size: 13px;
	line-height: 1.5;
}

.auth-form-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.auth-link {
	border: none;
	background: transparent;
	padding: 0;
	color: rgb(14, 165, 233);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	transition: color 0.2s ease;
	cursor: pointer;
}

.auth-link:hover {
	color: rgb(2, 132, 199);
	text-decoration: underline;
}

.auth-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: none;
	border-radius: 14px;
	background: rgb(14, 165, 233);
	padding: 15px 18px;
	color: white;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-button:hover {
	transform: translateY(-1px);
	background: rgb(2, 132, 199);
}

.auth-button:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.auth-button:disabled,
.auth-button.is-loading {
	opacity: 0.72;
	cursor: wait;
	transform: none;
}

.auth-button-content {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.auth-button-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: rgba(255, 255, 255, 0.95);
	border-radius: 9999px;
	animation: auth-button-spin 0.7s linear infinite;
}

@keyframes auth-button-spin {
	to {
		transform: rotate(360deg);
	}
}

.auth-button-link {
	text-decoration: none;
	text-align: center;
}

.auth-secondary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: 1px solid rgb(209, 213, 219);
	border-radius: 14px;
	background: white;
	padding: 15px 18px;
	color: rgb(75, 85, 99);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-secondary-button:hover {
	border-color: rgb(14, 165, 233);
	color: rgb(14, 165, 233);
}

.auth-inline-button {
	border: none;
	background: transparent;
	padding: 0;
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.auth-inline-button:disabled {
	cursor: wait;
	opacity: 0.72;
}

.auth-alert {
	border: 1px solid transparent;
	border-radius: 16px;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.55;
}

.auth-alert-with-spinner {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.auth-alert-spinner {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	border: 2px solid rgba(14, 165, 233, 0.18);
	border-top-color: rgba(14, 165, 233, 0.9);
	border-radius: 9999px;
	animation: auth-button-spin 0.7s linear infinite;
}

.auth-alert[hidden] {
	display: none;
}

.auth-alert-error {
	border-color: rgb(254, 202, 202);
	background: rgb(254, 242, 242);
	color: rgb(153, 27, 27);
}

.auth-alert-success {
	border-color: rgb(187, 247, 208);
	background: rgb(240, 253, 244);
	color: rgb(22, 101, 52);
}

.auth-alert-warning {
	border-color: rgb(253, 230, 138);
	background: rgb(255, 251, 235);
	color: rgb(146, 64, 14);
}

.auth-alert-info {
	border-color: rgb(186, 230, 253);
	background: rgb(240, 249, 255);
	color: rgb(3, 105, 161);
}

.auth-dev-link {
	margin: 0;
	border-radius: 14px;
	background: rgb(248, 250, 252);
	padding: 12px 14px;
	text-align: center;
	font-size: 13px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.account-summary {
	display: grid;
	gap: 6px;
	border: 1px solid rgb(229, 231, 235);
	border-radius: 16px;
	background: rgb(249, 250, 251);
	padding: 16px;
	color: rgb(31, 41, 55);
	overflow-wrap: anywhere;
}

.account-summary-label {
	color: rgb(107, 114, 128);
	font-size: 13px;
	font-weight: 600;
}

.auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	color: rgb(156, 163, 175);
	font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgb(229, 231, 235);
}

.auth-footnote {
	margin: 0;
	text-align: center;
	color: rgb(107, 114, 128);
	font-size: 14px;
	line-height: 1.6;
}

.auth-legal {
	margin: -4px 0 0;
	padding: 14px 16px;
	border-radius: 16px;
	background: rgb(249, 250, 251);
	color: rgb(107, 114, 128);
	font-size: 13px;
	line-height: 1.6;
	text-align: left;
}

.auth-legal .auth-link {
	font-size: inherit;
	font-weight: 600;
}

.pricing-note {
	color: rgb(156, 163, 175);
	font-size: 12px;
	line-height: 1.5;
}

.site-plan-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	height: 24px;
	border: 1px solid rgb(14, 165, 233);
	border-radius: 9999px;
	background: rgba(14, 165, 233, 0.08);
	padding: 0 10px;
	color: rgb(14, 165, 233);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2px;
	line-height: 1;
}

.download-alert {
	border: 1px solid transparent;
	border-radius: 14px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.5;
}

.download-alert[hidden] {
	display: none;
}

.download-alert-error {
	border-color: rgb(254, 202, 202);
	background: rgb(254, 242, 242);
	color: rgb(153, 27, 27);
}

.download-alert-success {
	border-color: rgb(187, 247, 208);
	background: rgb(240, 253, 244);
	color: rgb(22, 101, 52);
}

.download-btn.is-loading {
	opacity: 0.72;
	pointer-events: none;
	transform: none;
}

@media (max-width: 640px) {
	.content-page {
		padding: 56px 0;
	}

	.content-title {
		font-size: 26px;
	}

	.content-lead {
		font-size: 14px;
	}

	.auth-card {
		border-radius: 20px;
	}

	.auth-card-title {
		font-size: 26px;
	}

	.auth-form-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-height: 820px) {
	.auth-main {
		min-height: auto;
	}

	.auth-shell {
		gap: 20px;
	}

	.auth-card {
		border-radius: 18px;
	}

	.auth-card-title {
		margin-bottom: 20px;
		font-size: 24px;
	}

	.auth-form {
		gap: 14px;
	}

	.auth-input {
		padding: 12px 14px;
	}

	.auth-button,
	.auth-secondary-button {
		padding: 13px 16px;
	}

	.auth-legal {
		padding: 12px 14px;
		font-size: 12px;
	}
}
