:root {
	--login-primary: #047857;
	--login-primary-2: #34d399;
	--login-accent: #f59e0b;
	--login-ink: #064e3b;
	--login-muted: #64748b;
	--login-line: #e6edf5;
	--login-bg: #f0fdf4;
	--login-card: #ffffff;
	--login-visual-from: #047857;
	--login-visual-to: #022c22;
	--login-footer: #022c22;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
	min-height: 100%;
	background: var(--login-bg);
	color: var(--login-ink);
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.auth-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.auth-main {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.72fr);
}

.auth-visual {
	position: relative;
	padding: 28px 36px 24px;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(circle at 12% 8%, rgba(255,255,255,.28), transparent 30%),
		radial-gradient(circle at 90% 92%, rgba(255,255,255,.1), transparent 28%),
		linear-gradient(155deg, var(--login-visual-from) 0%, var(--login-visual-to) 100%);
	color: #fff;
	overflow: hidden;
}

.auth-visual::after {
	content: "";
	position: absolute;
	width: 520px;
	height: 520px;
	right: -180px;
	bottom: -220px;
	border-radius: 50%;
	background: rgba(255,255,255,.06);
	pointer-events: none;
}

.visual-top,
.visual-board {
	position: relative;
	z-index: 1;
}

.visual-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.visual-top img {
	height: 36px;
	filter: brightness(0) invert(1);
}

.visual-kicker {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	padding: 6px 10px;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 0;
	background: rgba(255,255,255,.1);
}

.visual-board {
	flex: 1;
	background: transparent;
	color: #fff;
	border-radius: 0;
	box-shadow: none;
	padding: 28px 8px 12px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 0;
}

.flow {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr;
	align-items: start;
	gap: 6px 0;
}

.flow-item {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 0 6px;
}

.flow-num {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	color: rgba(255,255,255,.7);
	margin-bottom: 10px;
}

.flow-icon {
	width: 76px;
	height: 76px;
	margin: 0 auto 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 0;
	color: #fff;
	box-shadow: none;
}

.flow-icon svg {
	width: 36px;
	height: 36px;
	stroke-width: 1.7;
}

.flow-item h3 {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.35;
	color: #fff;
}

.flow-arrow {
	position: relative;
	z-index: 2;
	align-self: center;
	margin-top: 34px;
	width: 22px;
	height: 22px;
	color: var(--login-accent);
}

.flow-arrow svg {
	width: 22px;
	height: 22px;
}

.board-line {
	height: 1px;
	background: rgba(255,255,255,.16);
	margin: 32px 0 24px;
}

.benefits {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.benefit {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 0;
}

.benefit-icon {
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.16);
	color: var(--login-accent);
}

.benefit-icon svg {
	width: 28px;
	height: 28px;
}

.benefit p {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.4;
	color: #fff;
}

.auth-form {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 36px 32px;
	background:
		radial-gradient(circle at 80% 12%, rgba(255,255,255,.9), transparent 36%),
		linear-gradient(180deg, #f8fafc 0%, var(--login-bg) 100%);
}

.login-card {
	width: 100%;
	max-width: 400px;
	background: var(--login-card);
	border: 1px solid rgba(15, 23, 42, .06);
	border-radius: 24px;
	box-shadow: 0 22px 50px rgba(15, 23, 42, .1);
	padding: 34px 30px 26px;
}

.login-card .brand {
	display: flex;
	justify-content: center;
	margin-bottom: 18px;
}

.login-card .brand img {
	height: 48px;
	width: auto;
}

.login-card h1 {
	font-size: 27px;
	letter-spacing: -.03em;
	text-align: center;
	margin-bottom: 6px;
}

.login-card .lead {
	text-align: center;
	color: var(--login-muted);
	font-size: 14px;
	margin-bottom: 24px;
}

.field { margin-bottom: 14px; }

.field label {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--login-muted);
	margin-bottom: 6px;
}

.field-control { position: relative; }

.field-control input {
	width: 100%;
	height: 50px;
	border: 1px solid var(--login-line);
	border-radius: 12px;
	background: #f8fafc;
	padding: 0 14px;
	font-size: 15px;
	font-weight: 600;
	color: var(--login-ink);
	outline: none;
	transition: .15s ease;
}

.field-control input#password { padding-right: 46px; }

.field-control input:focus {
	background: #fff;
	border-color: var(--login-primary-2);
	box-shadow: 0 0 0 4px rgba(20, 184, 166, .18);
}

.toggle-pass {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--login-muted);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.toggle-pass:hover,
.toggle-pass.is-on {
	color: var(--login-primary);
	background: rgba(15, 23, 42, .05);
}

.toggle-pass svg { width: 20px; height: 20px; }

.btn-login {
	width: 100%;
	height: 50px;
	margin-top: 6px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--login-primary), var(--login-primary-2));
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 12px 24px rgba(15, 23, 42, .18);
	transition: transform .15s ease, opacity .15s ease;
}

.btn-login:hover { transform: translateY(-1px); }
.btn-login:disabled { opacity: .72; cursor: wait; transform: none; }

.login-extra {
	margin-top: 16px;
	text-align: center;
}

.login-extra a {
	color: var(--login-primary);
	font-weight: 700;
	text-decoration: none;
	font-size: 14px;
}

.login-extra a:hover { text-decoration: underline; }

.auth-footer {
	background: var(--login-footer);
	color: #e2e8f0;
	display: grid;
	grid-template-columns: 180px 1fr 1fr;
	gap: 18px;
	align-items: center;
	padding: 16px 32px;
	font-size: 13px;
}

.auth-footer img {
	height: 34px;
	width: auto;
	max-width: 160px;
}

.auth-footer h4 {
	font-size: 14px;
	margin-bottom: 4px;
	color: #fff;
}

.auth-footer p,
.auth-footer a {
	color: #cbd5e1;
	text-decoration: none;
	line-height: 1.5;
}

.auth-footer a:hover { color: #fff; }

.auth-footer .with-icon {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
}

.auth-footer svg {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	margin-top: 3px;
	opacity: .85;
}

.auth-mails { text-align: right; }

.auth-mails a {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

@media (max-width: 980px) {
	.auth-main { grid-template-columns: 1fr; }
	.auth-visual { padding: 20px; }
	.visual-board { padding: 16px 0; }
	.flow {
		grid-template-columns: 1fr 1fr;
		gap: 18px 12px;
	}
	.flow-arrow { display: none; }
	.benefits { grid-template-columns: 1fr; }
	.auth-footer {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.auth-mails,
	.auth-mails a { text-align: center; justify-content: center; }
	.auth-footer img { margin: 0 auto; }
	.auth-footer .with-icon { justify-content: center; }
}
