﻿:root {
	--bg: #e9eff8;
	--surface: #ffffff;
	--surface-2: #f7faff;
	--text: #0f223f;
	--muted: #647996;
	--primary: #1d4f91;
	--primary-2: #2f6abd;
	--danger: #b7392f;
	--border: #d9e3f1;
	--line-strong: #c8d6ea;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: "Plus Jakarta Sans", sans-serif;
	color: var(--text);
	background:
		linear-gradient(160deg, rgba(49, 93, 167, 0.09) 0%, rgba(49, 93, 167, 0) 48%),
		radial-gradient(980px 460px at 10% 8%, #d4e1f9 0%, transparent 58%),
		var(--bg);
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 24px;
}

.shell {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--line-strong);
	box-shadow: 0 24px 56px rgba(8, 23, 45, 0.16);
	display: grid;
	grid-template-columns: 1.06fr 0.94fr;
	background: var(--surface);
}

.brand {
	background: linear-gradient(145deg, #0f2347 0%, #183c75 56%, #1f4c94 100%);
	padding: 52px 48px;
	color: #fff;
	position: relative;
	border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.brand::after {
	content: "";
	position: absolute;
	right: -88px;
	top: -96px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
}

.badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.24);
}

.brand-logo {
	margin: 22px 0 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	max-width: 300px;
}

.brand-logo img {
	max-width: 250px;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 10px 20px rgba(2, 8, 26, 0.42));
}

.brand h1 {
	margin: 0 0 12px;
	font-size: 41px;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.brand p {
	margin: 0 0 24px;
	max-width: 550px;
	color: rgba(255,255,255,0.9);
	font-size: 15px;
	line-height: 1.62;
}

.bullets {
	display: grid;
	gap: 9px;
}

.bullets span {
	font-size: 13px;
	font-weight: 600;
	color: #edf4ff;
	position: relative;
	padding-left: 14px;
}

.bullets span::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 6px;
	height: 6px;
	background: #9cc2ff;
}

.panel {
	padding: 48px 42px;
	display: flex;
	align-items: center;
	background:
		linear-gradient(180deg, #fbfdff 0%, #f1f6ff 100%);
}

.form-wrap {
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
}

.form-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 5px;
	padding: 30px 28px;
	box-shadow: 0 10px 24px rgba(14, 37, 75, 0.08);
}

.form-head {
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e6edf8;
}

.kicker {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.11em;
	font-weight: 700;
	color: #6f83a1;
	margin: 0 0 8px;
}

.form-wrap h2 {
	margin: 0 0 8px;
	font-size: 32px;
	line-height: 1.1;
	font-weight: 800;
	color: #0e2342;
}

.form-wrap .sub {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.alert {
	margin-bottom: 14px;
	padding: 12px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
}

.alert.error {
	background: #fff2f1;
	border: 1px solid #ffd4d0;
	color: var(--danger);
}

.alert.info {
	background: #eef6ff;
	border: 1px solid #d4e5fb;
	color: #1f4f86;
}

.field { margin-bottom: 15px; }

label {
	display: block;
	margin-bottom: 7px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #5f7696;
}

.input-shell {
	position: relative;
}

.input-shell--password input {
	padding-right: 56px;
}

.input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: #6f86a7;
	pointer-events: none;
	z-index: 2;
}

.input-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

input {
	width: 100%;
	height: 48px;
	padding: 0 13px 0 38px;
	border-radius: 4px;
	border: 1px solid var(--border);
	background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
	font-size: 14px;
	color: #112946;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .15s ease;
}

input:focus {
	border-color: #5b86c3;
	box-shadow: 0 0 0 3px rgba(47, 106, 189, .16);
	background: #ffffff;
	transform: translateY(-1px);
}

.input-shell:focus-within .input-icon {
	color: #2c64ad;
}

.password-toggle {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: #4f6b8f;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	width: auto;
	height: auto;
	box-shadow: none;
	margin: 0;
	padding: 0;
}

.password-toggle:hover {
	transform: translateY(-50%);
	box-shadow: none;
	filter: none;
}

.inline-error {
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--danger);
}

.login-hints {
	display: grid;
	gap: 6px;
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px solid #e2ebf7;
	background: #f7faff;
	font-size: 12px;
	font-weight: 600;
	color: #607792;
}

button {
	width: 100%;
	height: 50px;
	border: 1px solid #18407a;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(130deg, var(--primary), var(--primary-2));
	box-shadow: 0 10px 18px rgba(29, 79, 145, .28);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
	margin-top: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.secondary-form {
	margin-top: 12px;
}

.secondary-button {
	background: #f6fbff;
	border-color: #cfe0f6;
	color: #244a79;
	box-shadow: none;
}

.secondary-button:hover {
	box-shadow: 0 10px 18px rgba(29, 79, 145, .14);
}

button:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 20px rgba(29, 79, 145, .34);
	filter: saturate(1.08);
}

button svg {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

.form-meta {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #e8eef8;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #7186a3;
}

@media (max-width: 980px) {
	body {
		padding: 14px;
	}

	.shell {
		grid-template-columns: 1fr;
	}

	.brand,
	.panel {
		padding: 28px 22px;
	}

	.brand h1 {
		font-size: 32px;
	}

	.form-card {
		padding: 24px 20px;
	}

	.form-meta {
		flex-direction: column;
		gap: 6px;
	}
}
