:root {
	--auth-blue: #1266f1;
	--auth-blue-dark: #0d4fd1;
	--auth-bg: #f5f8fc;
	--auth-ink: #172033;
	--auth-muted: #66738a;
	--auth-line: #dfe8f5;
	--auth-shadow: 0 22px 55px rgba(34, 67, 112, 0.15);
}

* {
	box-sizing: border-box;
}

body.auth-page {
	margin: 0;
	min-height: 100vh;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	color: var(--auth-ink);
	background:
		radial-gradient(circle at 76% 8%, rgba(18,102,241,0.10), transparent 32%),
		linear-gradient(180deg, #ffffff 0%, var(--auth-bg) 52%, #eef4fb 100%);
}

.auth-header {
	min-height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: min(1120px, calc(100% - 36px));
	margin: 0 auto;
}

.auth-logo {
	font-size: 30px;
	font-weight: 900;
	letter-spacing: -0.04em;
	color: #111827;
	text-decoration: none;
}

.auth-logo span {
	color: var(--auth-blue);
}

.auth-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.auth-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 8px;
	border: 1px solid var(--auth-line);
	background: rgba(255,255,255,0.9);
	color: #334155;
	text-decoration: none;
	font-weight: 750;
}

.auth-shell {
	width: min(1120px, calc(100% - 36px));
	min-height: calc(100vh - 76px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
	gap: 54px;
	align-items: center;
	padding: 38px 0 64px;
}

.auth-intro {
	max-width: 570px;
}

.auth-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 999px;
	background: #eef7f2;
	color: #0caa55;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.auth-badge::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #16c566;
}

.auth-intro h1 {
	margin: 26px 0 18px;
	font-size: clamp(38px, 5vw, 58px);
	line-height: 1.08;
	letter-spacing: -0.04em;
}

.auth-intro h1 span {
	color: var(--auth-blue);
}

.auth-intro p {
	margin: 0;
	color: var(--auth-muted);
	font-size: 17px;
	line-height: 1.75;
}

.auth-points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 34px;
}

.auth-point {
	padding: 14px;
	border: 1px solid var(--auth-line);
	border-radius: 12px;
	background: rgba(255,255,255,0.75);
}

.auth-point strong {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
}

.auth-point span {
	display: block;
	color: var(--auth-muted);
	font-size: 12px;
	line-height: 1.5;
}

.auth-card {
	border: 1px solid var(--auth-line);
	border-radius: 18px;
	background: rgba(255,255,255,0.94);
	box-shadow: var(--auth-shadow);
	padding: 30px;
}

.auth-card h1 {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: -0.03em;
}

.auth-subtitle {
	margin: 0 0 22px;
	color: var(--auth-muted);
	line-height: 1.55;
}

.auth-card form {
	margin: 0;
}

.auth-card p {
	margin: 0 0 15px;
}

.auth-card label {
	display: block;
	color: #334155;
	font-weight: 800;
	font-size: 13px;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card .input {
	width: 100%;
	height: 46px;
	margin-top: 7px;
	padding: 0 13px;
	border: 1px solid #cfdae8;
	border-radius: 9px;
	background: #fff;
	color: var(--auth-ink);
	font: inherit;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-card input:focus {
	border-color: var(--auth-blue);
	box-shadow: 0 0 0 4px rgba(18,102,241,0.12);
}

.auth-card .button,
.auth-submit {
	width: 100%;
	height: 48px;
	border: 0;
	border-radius: 9px;
	background: linear-gradient(180deg, #1e78ff, #075ee8);
	color: #fff;
	font: inherit;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 16px 30px rgba(18,102,241,0.22);
}

.auth-card .submit {
	margin-top: 20px;
}

.auth-card .regtext,
.auth-footnote {
	color: var(--auth-muted);
	font-size: 14px;
	line-height: 1.55;
	text-align: center;
}

.auth-card .regtext a,
.auth-footnote a {
	color: var(--auth-blue);
	font-weight: 800;
	text-decoration: none;
}

.auth-message,
.error {
	width: min(560px, calc(100% - 36px));
	margin: 14px auto 0;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid #bfd8ff;
	background: #eef6ff;
	color: #123a72;
	font-weight: 750;
	text-align: center;
}

.auth-card .error {
	width: 100%;
	margin: 0 0 16px;
}

.auth-captcha {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 4px 0 12px;
}

.auth-captcha img {
	border: 1px solid var(--auth-line);
	border-radius: 8px;
	background: #fff;
}

@media (max-width: 860px) {
	.auth-shell {
		grid-template-columns: 1fr;
		gap: 28px;
		padding-top: 24px;
	}

	.auth-intro {
		max-width: none;
	}

	.auth-points {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.auth-header {
		min-height: 66px;
		width: calc(100% - 24px);
	}

	.auth-logo {
		font-size: 25px;
	}

	.auth-header-actions .auth-link:first-child {
		display: none;
	}

	.auth-shell {
		width: calc(100% - 24px);
	}

	.auth-card {
		padding: 22px;
	}
}
