:root {
	--ink: #1b1e23;
	--muted: #6b7280;
	--label: #2c3138;
	--line: #d7dde5;
	--line-strong: #c5ced8;
	--field: #ffffff;
	--canvas: #e8eaee;
	--card: #ffffff;
	--accent: #1c7a43;
	--accent-hover: #166538;
	--accent-soft: #e7f5ec;
	--danger: #c24141;
	--shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 18px 50px rgba(16, 24, 40, 0.08);
	--radius-shell: 28px;
	--radius-photo: 22px;
	--font: "Inter", "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
}

body.auth-body {
	height: 100vh;
	overflow: hidden;
	background: var(--canvas);
	color: var(--ink);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	color: var(--accent-hover);
	text-decoration: underline;
}

.auth-shell {
	height: calc(100vh - 28px);
	margin: 14px;
	background: var(--card);
	border-radius: var(--radius-shell);
	box-shadow: var(--shadow);
	display: grid;
	grid-template-columns: 1.12fr minmax(400px, 0.92fr);
	overflow: hidden;
}

.auth-pane {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	padding: 26px 36px 18px;
}

.auth-brand {
	display: flex;
	align-items: center;
	min-height: 36px;
	color: var(--ink);
	text-decoration: none;
}

.auth-brand:hover {
	color: var(--ink);
	text-decoration: none;
}

.auth-wordmark {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1;
}

.auth-center {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 0 12px;
}

.auth-form {
	width: 100%;
	max-width: 392px;
}

.auth-form h1 {
	margin: 0;
	font-size: 32px;
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -0.035em;
	color: #17191d;
}

.auth-lede {
	margin: 8px 0 0;
	color: #6d7480;
	font-size: 15px;
}

.auth-fields {
	margin-top: 26px;
}

.auth-field {
	margin-bottom: 14px;
}

.auth-field label {
	display: block;
	margin: 0 0 7px 2px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--label);
}

.auth-field label .req {
	color: #c24141;
	font-weight: 600;
}

.auth-field input[type="text"],
.auth-field input[type="password"],
.auth-field input[type="email"] {
	width: 100%;
	height: 48px;
	padding: 0 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--field);
	color: var(--ink);
	font-family: inherit;
	font-size: 15px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input::placeholder {
	color: #9aa3af;
}

.auth-field input:hover {
	border-color: var(--line-strong);
}

.auth-field input:focus {
	border-color: #1c7a43;
	box-shadow: 0 0 0 4px rgba(28, 122, 67, 0.12);
}

.auth-field.is-invalid input {
	border-color: #e3a3a3;
	background: #fffafa;
}

.auth-error {
	display: block;
	margin: 6px 0 0 14px;
	color: var(--danger);
	font-size: 12.5px;
	line-height: 1.35;
}

.auth-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 2px 2px 16px;
	font-size: 13.5px;
}

.auth-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #4b5563;
	cursor: pointer;
	user-select: none;
	margin: 0;
	font-weight: 500;
}

.auth-check input {
	appearance: none;
	width: 16px;
	height: 16px;
	margin: 0;
	border: 1.5px solid #c5ced8;
	border-radius: 4px;
	background: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
}

.auth-check input:checked {
	background: var(--accent);
	border-color: var(--accent);
}

.auth-check input:checked::after {
	content: "";
	width: 8px;
	height: 5px;
	border-left: 1.6px solid #fff;
	border-bottom: 1.6px solid #fff;
	transform: translateY(-1px) rotate(-45deg);
}

.auth-meta a {
	color: #3f4650;
	font-weight: 500;
}

.auth-meta a:hover {
	color: var(--accent);
}

.auth-submit {
	width: 100%;
	height: 48px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.auth-submit:hover,
.auth-submit:focus {
	background: var(--accent-hover);
	outline: none;
}

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

.auth-switch {
	margin: 18px 0 0;
	text-align: center;
	color: #6b7280;
	font-size: 14px;
}

.auth-switch a {
	font-weight: 600;
	color: #1f6b3c;
}

.auth-alert {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.4;
	background: var(--accent-soft);
	color: #146338;
}

.auth-alert.is-danger {
	background: #fdecec;
	color: #9f2c2c;
}

.auth-legal {
	min-height: 28px;
	color: #9aa1ab;
	font-size: 12.5px;
}

.auth-legal p {
	margin: 0;
}

.auth-hero {
	order: -1;
	padding: 12px 0 12px 12px;
	height: 100%;
	min-height: 0;
}

.auth-hero-photo {
	position: relative;
	height: 100%;
	min-height: 0;
	border-radius: var(--radius-photo);
	overflow: hidden;
	background: #1d2a24 url("../image/hero.jpg") center 30% / cover no-repeat;
}

.auth-hero-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(8, 16, 12, 0.05) 0%, rgba(8, 16, 12, 0) 28%, rgba(8, 16, 12, 0.18) 52%, rgba(7, 16, 12, 0.78) 100%);
	pointer-events: none;
}

.auth-status {
	position: absolute;
	top: 22px;
	left: 22px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 280px;
	padding: 10px 16px 10px 10px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(16, 24, 40, 0.16);
}

.auth-status .auth-status-icon {
	width: 26px;
	height: 26px;
	margin: 0;
	border-radius: 50%;
	background: #1c7a43;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 26px;
	line-height: 0;
}

.auth-status-icon svg {
	display: block;
	width: 15px;
	height: 15px;
}

.auth-status strong {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #1b1e23;
	line-height: 1;
	white-space: nowrap;
}

.auth-hero-copy {
	position: absolute;
	left: 32px;
	right: 36px;
	bottom: 32px;
	z-index: 2;
	color: #fff;
	max-width: 460px;
}

.auth-hero-copy h2 {
	margin: 0;
	font-size: 42px;
	line-height: 1.08;
	font-weight: 600;
	letter-spacing: -0.035em;
}

.auth-hero-copy p {
	margin: 12px 0 0;
	max-width: 38ch;
	font-size: 15.5px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 980px) {
	body.auth-body {
		height: auto;
		min-height: 100vh;
		overflow: auto;
	}

	.auth-shell {
		grid-template-columns: 1fr;
		margin: 10px;
		height: auto;
		min-height: calc(100vh - 20px);
	}

	.auth-pane,
	.auth-hero {
		height: auto;
		min-height: 0;
	}

	.auth-hero {
		padding: 0 10px 10px;
		order: -1;
	}

	.auth-hero-photo {
		min-height: 280px;
		height: 320px;
	}

	.auth-hero-copy h2 {
		font-size: 28px;
	}

	.auth-hero-copy {
		left: 20px;
		right: 20px;
		bottom: 18px;
	}

	.auth-status {
		top: 14px;
		left: 14px;
	}

	.auth-pane {
		padding: 22px 20px 16px;
	}

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

@media (max-width: 640px) {
	.auth-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.auth-hero-copy p {
		display: none;
	}
}
