:root {
	--auth-bg: #f7f9fb;
	--auth-surface: #ffffff;
	--auth-surface-soft: #eef5f4;
	--auth-ink: #172033;
	--auth-muted: #5d697b;
	--auth-line: #dbe3ea;
	--auth-brand: #0f766e;
	--auth-brand-dark: #0b4f4a;
	--auth-blue: #17324d;
	--auth-danger: #b42318;
	--auth-success: #067647;
	--auth-warning: #8a4b0f;
	--auth-radius: 8px;
	--auth-shadow: 0 18px 48px rgba(23, 32, 51, 0.1);
}

* {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	background: var(--auth-bg);
}

body.auth-page {
	display: flex;
	min-height: 100vh;
	margin: 0;
	flex-direction: column;
	background: var(--auth-bg);
	color: var(--auth-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page a {
	color: var(--auth-brand-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.auth-page a:hover {
	color: var(--auth-brand);
}


.auth-main {
	display: flex;
	flex: 1;
	padding: 52px 0 64px;
	align-items: flex-start;
}

.auth-shell {
	width: min(520px, calc(100% - 32px));
	margin: 0 auto;
}

.auth-intro {
	margin-bottom: 24px;
}


.auth-intro h1 {
	margin: 0;
	color: var(--auth-blue);
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: 0;
}

.auth-intro p {
	margin: 12px 0 0;
	color: var(--auth-muted);
	font-size: 0.98rem;
	line-height: 1.6;
}

.auth-notices {
	display: grid;
	gap: 10px;
	margin-bottom: 18px;
}

.auth-notices:empty {
	display: none;
}

.auth-notice {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 10px;
	padding: 14px 16px;
	border: 1px solid var(--auth-line);
	border-left-width: 4px;
	border-radius: var(--auth-radius);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.5;
}

.auth-notice i {
	margin-top: 1px;
	font-size: 1rem;
}

.auth-notice--error {
	border-color: rgba(180, 35, 24, 0.3);
	border-left-color: var(--auth-danger);
	background: #fff7f6;
	color: #7a271a;
}

.auth-notice--success {
	border-color: rgba(6, 118, 71, 0.24);
	border-left-color: var(--auth-success);
	background: #ecfdf3;
	color: #05603a;
}

.auth-notice--warning {
	border-color: rgba(138, 75, 15, 0.25);
	border-left-color: var(--auth-warning);
	background: #fffaeb;
	color: #713b12;
}

.auth-form-shell {
	overflow: hidden;
	border: 1px solid var(--auth-line);
	border-radius: var(--auth-radius);
	background: var(--auth-surface);
	box-shadow: var(--auth-shadow);
}

.auth-form {
	padding: 30px 32px 32px;
}

.auth-field + .auth-field {
	margin-top: 20px;
}

.auth-page .form-label {
	margin-bottom: 7px;
	color: var(--auth-ink);
	font-size: 0.9rem;
	font-weight: 750;
}

.auth-required {
	color: var(--auth-danger);
	font-weight: 800;
}

.auth-page .form-control {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 0.68rem 0.78rem;
	border-color: #cbd6df;
	border-radius: 6px;
	color: var(--auth-ink);
}

.auth-page .form-control:hover {
	border-color: #9fb0bf;
}

.auth-page .form-control:focus {
	border-color: var(--auth-brand);
	box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.14);
}

.auth-page .form-text {
	color: var(--auth-muted);
	font-size: 0.8rem;
}

.auth-password {
	position: relative;
}

.auth-password .form-control {
	padding-right: 52px;
}

.auth-password-toggle {
	display: grid;
	position: absolute;
	top: 7px;
	right: 7px;
	width: 34px;
	height: 34px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--auth-muted);
}

.auth-password-toggle:hover {
	background: var(--auth-surface-soft);
	color: var(--auth-blue);
}

.auth-password-toggle:focus-visible {
	outline: 3px solid rgba(15, 118, 110, 0.22);
	outline-offset: 1px;
}

.auth-submit {
	display: inline-flex;
	width: 100%;
	min-height: 48px;
	margin-top: 24px;
	padding: 12px 20px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	border: 1px solid var(--auth-brand);
	border-radius: var(--auth-radius);
	background: var(--auth-brand);
	color: #ffffff;
	font-weight: 800;
	box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.auth-submit:hover {
	border-color: var(--auth-brand-dark);
	background: var(--auth-brand-dark);
}

.auth-submit:focus-visible {
	outline: 3px solid rgba(15, 118, 110, 0.25);
	outline-offset: 2px;
}

.auth-form-footer {
	padding: 18px 24px;
	border-top: 1px solid var(--auth-line);
	background: #fbfcfd;
	text-align: center;
}

.auth-form-footer a,
.auth-return {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.88rem;
	font-weight: 750;
	text-decoration: none;
}

.auth-return-wrap {
	margin-top: 20px;
	text-align: center;
}

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

	.auth-main {
		padding: 34px 0 44px;
	}

	.auth-intro h1 {
		font-size: 1.85rem;
	}

	.auth-form {
		padding: 26px 20px 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

.auth-remember {
	margin-top: 20px;
}

.auth-remember label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.85rem;
	line-height: 1.5;
	cursor: pointer;
}

.auth-remember input {
	margin: 0;
	flex-shrink: 0;
	font-size: 1rem;
}
