div#main.goalz-auth-page {
	max-width: 1080px;
	margin-right: 16px;
	margin-bottom: 24px;
}

.goalz-auth-stage {
	background:
		radial-gradient(circle at top right, rgba(76, 166, 214, 0.16), transparent 32%),
		linear-gradient(180deg, #f6fbff 0%, #eef6fb 100%);
	border: 1px solid #c8dced;
	border-radius: 20px;
	padding: 24px;
	box-shadow: 0 12px 30px rgba(20, 69, 102, 0.08);
}

.goalz-auth-hero {
	margin-bottom: 22px;
}

.goalz-auth-kicker {
	display: inline-block;
	margin-bottom: 10px;
	padding: 6px 10px;
	border-radius: 999px;
	background: #d9edf9;
	color: #0d5f92;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.goalz-auth-hero h1 {
	margin: 0 0 10px 0;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	color: #0f2740;
	font-size: 34px;
	line-height: 1.08;
}

.goalz-auth-hero p {
	margin: 0;
	max-width: 760px;
	color: #4d6880;
	font-size: 17px;
	line-height: 1.55;
}

.goalz-auth-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
	gap: 20px;
	align-items: start;
}

.goalz-auth-card {
	background: #ffffff;
	border: 1px solid #d5e5f1;
	border-radius: 18px;
	padding: 22px;
	box-shadow: 0 10px 24px rgba(19, 64, 93, 0.08);
}

.goalz-auth-card h2,
.goalz-auth-card h3 {
	margin: 0 0 14px 0;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	color: #12314d;
}

.goalz-auth-card h2 {
	font-size: 28px;
	line-height: 1.12;
}

.goalz-auth-card h3 {
	font-size: 21px;
	line-height: 1.2;
}

.goalz-auth-card p {
	margin: 0 0 14px 0;
	color: #5b7488;
	line-height: 1.55;
}

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

.goalz-auth-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.goalz-auth-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.goalz-auth-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.goalz-auth-field label {
	font-size: 14px;
	font-weight: 700;
	color: #17324b;
	min-height: 2.6em;
	line-height: 1.3;
	display: flex;
	align-items: flex-end;
}

.goalz-auth-field input {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid #b8d0e1;
	border-radius: 14px;
	background: #fbfdff;
	color: #15314a;
	font-size: 16px;
	box-shadow: inset 0 1px 2px rgba(16, 58, 87, 0.04);
}

.goalz-auth-field input:focus {
	outline: none;
	border-color: #2e8ac0;
	box-shadow: 0 0 0 3px rgba(46, 138, 192, 0.16);
	background: #ffffff;
}

.goalz-auth-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 24px;
	border: 1px solid #00588c;
	border-radius: 14px;
	background: linear-gradient(180deg, #0f7fbe 0%, #0066a2 100%);
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 7px 18px rgba(0, 86, 136, 0.18);
	transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.goalz-auth-submit:hover {
	filter: brightness(1.03);
	box-shadow: 0 10px 22px rgba(0, 86, 136, 0.24);
}

.goalz-auth-submit:active {
	transform: translateY(1px);
}

.goalz-auth-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	margin-top: 4px;
	color: #5a7488;
	font-size: 14px;
}

.goalz-auth-meta a {
	color: #0b5f95;
	font-weight: 700;
	text-decoration: none;
}

.goalz-auth-meta a:hover {
	text-decoration: underline;
}

.goalz-auth-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.goalz-auth-provider-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 18px;
	border: 1px solid #c8dced;
	border-radius: 14px;
	background: #ffffff;
	color: #15314a;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.goalz-auth-provider-button:hover {
	box-shadow: 0 10px 20px rgba(19, 64, 93, 0.08);
	text-decoration: none;
}

.goalz-auth-provider-button[disabled] {
	cursor: not-allowed;
	opacity: 0.55;
	box-shadow: none;
}

.goalz-auth-provider-button.is-passkey {
	background: linear-gradient(180deg, #edf7ff 0%, #dceffd 100%);
	border-color: #a9cfe8;
	color: #0b5f95;
}

.goalz-auth-provider-button.is-google {
	border-color: #d7c5f1;
	color: #5b52c4;
}

.goalz-auth-provider-button.is-apple {
	border-color: #cfd7de;
	color: #24303b;
}

.goalz-auth-alert {
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid #d4e6f2;
	background: #f3faff;
	color: #17405f;
	line-height: 1.5;
}

.goalz-auth-alert.is-error {
	border-color: #efb9b9;
	background: linear-gradient(180deg, #fff4f4 0%, #ffeded 100%);
	color: #8f1d1d;
}

.goalz-auth-alert.is-success {
	border-color: #b8e1c3;
	background: linear-gradient(180deg, #f4fff6 0%, #ebfff0 100%);
	color: #25633a;
}

.goalz-auth-alert strong {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
}

.goalz-auth-list {
	margin: 0;
	padding-left: 18px;
	color: #506b82;
	line-height: 1.6;
}

.goalz-auth-list li + li {
	margin-top: 7px;
}

.goalz-auth-side-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
	padding: 11px 14px;
	border-radius: 12px;
	background: #edf6fc;
	color: #0b5f95;
	font-weight: 700;
	text-decoration: none;
}

.goalz-auth-side-link:hover {
	background: #e2f0fa;
	text-decoration: none;
}

.goalz-auth-footnote {
	margin-top: 14px;
	color: #667f92;
	font-size: 13px;
	line-height: 1.55;
}

.goalz-auth-section-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 22px 0 18px 0;
	color: #6d8598;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.goalz-auth-section-divider::before,
.goalz-auth-section-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(184, 208, 225, 0.2) 0%, rgba(184, 208, 225, 0.95) 50%, rgba(184, 208, 225, 0.2) 100%);
}

.goalz-auth-passkey-panel {
	padding: 18px;
	border: 1px solid #d9e8f4;
	border-radius: 16px;
	background: linear-gradient(180deg, #f7fbff 0%, #eef7fd 100%);
}

.goalz-auth-passkey-panel h3 {
	margin-bottom: 10px;
}

.goalz-auth-passkey-panel p {
	margin-bottom: 16px;
}

.goalz-auth-passkey-submit {
	width: 100%;
	min-height: 52px;
}

.goalz-security-page {
	max-width: 1180px;
}

.goalz-security-stage {
	background:
		radial-gradient(circle at top left, rgba(93, 187, 224, 0.2), transparent 28%),
		radial-gradient(circle at top right, rgba(12, 99, 150, 0.12), transparent 32%),
		linear-gradient(180deg, #f7fbff 0%, #edf5fb 100%);
}

.goalz-security-hero {
	margin-bottom: 18px;
}

.goalz-security-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.goalz-security-summary-card {
	grid-column: 1 / -1;
	background:
		linear-gradient(135deg, rgba(9, 113, 177, 0.04) 0%, rgba(255, 255, 255, 0.98) 45%),
		#ffffff;
}

.goalz-security-card {
	min-height: 0;
}

.goalz-security-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.goalz-security-card-head h2,
.goalz-security-card-head h3 {
	margin-bottom: 8px;
}

.goalz-security-card-head p {
	margin-bottom: 0;
}

.goalz-security-badge-row,
.goalz-security-provider-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.goalz-security-badge,
.goalz-security-inline-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 12px;
	border-radius: 999px;
	background: #e9f4fb;
	color: #0d5f92;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.goalz-security-badge.is-positive,
.goalz-security-inline-badge.is-positive {
	background: #eaf9ef;
	color: #2b7442;
}

.goalz-security-badge.is-warning {
	background: #fff6df;
	color: #8c6510;
}

.goalz-security-badge.is-muted,
.goalz-security-inline-badge.is-muted {
	background: #eef2f5;
	color: #667d90;
}

.goalz-security-summary-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.goalz-security-stat {
	min-width: 0;
	padding: 16px 18px;
	border: 1px solid #dbe8f2;
	border-radius: 16px;
	background: linear-gradient(180deg, #fbfdff 0%, #f4f9fd 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.goalz-security-stat-label {
	display: block;
	margin-bottom: 8px;
	color: #678196;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.goalz-security-stat strong {
	display: block;
	color: #143450;
	font-size: clamp(18px, 1.8vw, 22px);
	line-height: 1.2;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.goalz-security-stat small {
	display: block;
	margin-top: 10px;
	color: #678196;
	font-size: 13px;
	line-height: 1.45;
}

.goalz-security-form-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.goalz-security-helper {
	color: #607a8f;
	font-size: 14px;
	line-height: 1.5;
}

.goalz-security-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.goalz-security-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	border: 1px solid #d8e7f1;
	border-radius: 16px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
	box-shadow: 0 8px 18px rgba(18, 64, 93, 0.05);
}

.goalz-security-list-main {
	min-width: 0;
	flex: 1 1 auto;
}

.goalz-security-list-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 7px;
}

.goalz-security-list-title-row strong {
	color: #143450;
	font-size: 18px;
}

.goalz-security-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	color: #607a8f;
	font-size: 14px;
	line-height: 1.5;
}

.goalz-security-inline-form {
	margin: 0;
}

.goalz-security-action {
	min-height: 46px;
	padding: 0 16px;
}

.goalz-security-action.is-secondary {
	border-color: #c4d8e8;
	background: #ffffff;
	color: #0d5f92;
	box-shadow: none;
}

.goalz-security-action.is-secondary:hover {
	border-color: #90bedb;
	box-shadow: 0 8px 18px rgba(18, 64, 93, 0.08);
}

.goalz-security-empty {
	padding: 18px;
	border: 1px dashed #c9dbe8;
	border-radius: 16px;
	background: linear-gradient(180deg, #f9fcff 0%, #f2f8fc 100%);
}

.goalz-security-empty strong {
	display: block;
	margin-bottom: 6px;
	color: #17324b;
	font-size: 17px;
}

.goalz-security-empty p {
	margin: 0;
}

.goalz-security-footer-link {
	margin-top: 18px;
}

.goalz-security-footer-link a {
	color: #0b5f95;
	font-weight: 700;
	text-decoration: none;
}

.goalz-security-footer-link a:hover {
	text-decoration: underline;
}

@media (max-width: 980px) {
	.goalz-auth-layout {
		grid-template-columns: 1fr;
	}

	.goalz-security-grid {
		grid-template-columns: 1fr;
	}

	.goalz-security-summary-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	div#main.goalz-auth-page {
		margin-right: 8px;
	}

	.goalz-auth-stage {
		padding: 16px;
		border-radius: 16px;
	}

	.goalz-auth-hero h1 {
		font-size: 28px;
	}

	.goalz-auth-hero p {
		font-size: 15px;
	}

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

	.goalz-auth-form-row {
		grid-template-columns: 1fr;
	}

	.goalz-auth-section-divider {
		margin-top: 18px;
	}

	.goalz-security-card-head,
	.goalz-security-list-item {
		flex-direction: column;
		align-items: stretch;
	}

	.goalz-security-summary-grid {
		grid-template-columns: 1fr;
	}

	.goalz-security-action {
		width: 100%;
	}
}
