@CHARSET "UTF-8";

:root {
	--forest-950: #102f29;
	--forest-900: #173f36;
	--forest-800: #21584a;
	--forest-700: #28705d;
	--forest-100: #e9f2ef;
	--lime: #b9d638;
	--ink: #1b2522;
	--muted: #66736f;
	--line: #dfe7e4;
	--surface: #ffffff;
	--canvas: #f3f6f5;
}

* {
	box-sizing: border-box;
}

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

body {
	background: var(--canvas);
	color: var(--ink);
	font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

button,
input,
select {
	font: inherit;
}

.login-shell {
	display: grid;
	grid-template-columns: minmax(380px, 1.05fr) minmax(440px, .95fr);
	min-height: 100vh;
	overflow: hidden;
}

.brand-panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background:
		radial-gradient(circle at 15% 15%, rgba(185, 214, 56, .16), transparent 34%),
		linear-gradient(145deg, var(--forest-800), var(--forest-950));
	color: #fff;
}

.brand-panel::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
	background-size: 48px 48px;
	content: "";
	mask-image: linear-gradient(to bottom right, #000, transparent 75%);
}

.brand-panel__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: clamp(36px, 5vw, 72px);
}

.redisoft-mark {
	width: 128px;
	height: auto;
	object-fit: contain;
	object-position: left center;
	filter: brightness(0) invert(1);
	opacity: .94;
}

.brand-copy {
	max-width: 580px;
	margin: auto 0;
	padding: 72px 0;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 18px;
	color: var(--lime);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.eyebrow::before {
	width: 24px;
	height: 2px;
	background: currentColor;
	border-radius: 99px;
	content: "";
}

.eyebrow--dark {
	color: var(--forest-700);
}

.brand-copy h1 {
	margin: 0;
	font-size: clamp(44px, 5vw, 72px);
	font-weight: 730;
	letter-spacing: -.055em;
	line-height: .98;
}

.brand-copy p {
	max-width: 500px;
	margin: 28px 0 0;
	color: rgba(255,255,255,.72);
	font-size: clamp(16px, 1.35vw, 19px);
	line-height: 1.7;
}

.brand-footer {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255,255,255,.66);
	font-size: 13px;
}

.status-dot {
	width: 8px;
	height: 8px;
	background: var(--lime);
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(185,214,56,.12);
}

.brand-panel__glow {
	position: absolute;
	z-index: 0;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 50%;
}

.brand-panel__glow--one {
	right: -240px;
	bottom: -260px;
	width: 650px;
	height: 650px;
	box-shadow: inset 0 0 100px rgba(185,214,56,.06);
}

.brand-panel__glow--two {
	right: -100px;
	bottom: -120px;
	width: 360px;
	height: 360px;
}

.access-panel {
	display: grid;
	place-items: center;
	padding: clamp(28px, 5vw, 80px);
	background:
		radial-gradient(circle at 100% 0, rgba(40,112,93,.08), transparent 30%),
		var(--canvas);
}

.login-card {
	width: min(100%, 440px);
}

.client-logo {
	display: flex;
	align-items: center;
	min-height: 62px;
	margin-bottom: clamp(32px, 6vh, 58px);
}

.client-logo img {
	display: block;
	max-width: 185px;
	max-height: 84px;
	object-fit: contain;
	object-position: left center;
}

.client-logo span {
	color: var(--forest-900);
	font-size: 24px;
	font-weight: 800;
}

.login-heading h2 {
	margin: 0;
	color: var(--ink);
	font-size: clamp(34px, 4vw, 46px);
	font-weight: 720;
	letter-spacing: -.04em;
	line-height: 1.05;
}

.login-heading p {
	margin: 13px 0 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
}

.login-form {
	display: grid;
	gap: 20px;
	margin-top: 36px;
}

.field label {
	display: block;
	margin-bottom: 9px;
	color: #34413d;
	font-size: 13px;
	font-weight: 700;
}

.field__label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.field__label-row a {
	color: var(--forest-700);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.field__label-row a:hover {
	text-decoration: underline;
}

.control {
	position: relative;
}

.control input,
.control select {
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 48px;
	border: 1px solid var(--line);
	border-radius: 12px;
	outline: 0;
	background: var(--surface);
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.control select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 50px;
	cursor: pointer;
}

.control input::placeholder {
	color: #9aa5a1;
	font-weight: 400;
}

.control input:hover,
.control select:hover {
	border-color: #bccbc6;
}

.control input:focus,
.control select:focus {
	border-color: var(--forest-700);
	box-shadow: 0 0 0 4px rgba(40,112,93,.11);
}

.control__icon {
	position: absolute;
	top: 50%;
	left: 17px;
	z-index: 1;
	display: grid;
	width: 20px;
	height: 20px;
	place-items: center;
	color: #7d8d88;
	transform: translateY(-50%);
	pointer-events: none;
}

.control__icon svg,
.password-toggle svg,
.submit-button svg,
.security-note svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.select-arrow {
	position: absolute;
	top: 50%;
	right: 19px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #71817c;
	border-bottom: 2px solid #71817c;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.password-toggle {
	position: absolute;
	top: 50%;
	right: 11px;
	display: grid;
	width: 36px;
	height: 36px;
	padding: 8px;
	place-items: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #71817c;
	cursor: pointer;
	transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus {
	outline: 0;
	background: var(--forest-100);
	color: var(--forest-700);
}

.eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
	display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
	display: block;
}

.submit-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 56px;
	margin-top: 8px;
	padding: 0 24px;
	border: 0;
	border-radius: 12px;
	background: var(--forest-900);
	box-shadow: 0 10px 24px rgba(23,63,54,.2);
	color: #fff;
	font-size: 15px;
	font-weight: 750;
	cursor: pointer;
	transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.submit-button svg {
	width: 19px;
	height: 19px;
	transition: transform .18s ease;
}

.submit-button:hover {
	background: var(--forest-800);
	box-shadow: 0 13px 30px rgba(23,63,54,.26);
	transform: translateY(-1px);
}

.submit-button:hover svg {
	transform: translateX(3px);
}

.submit-button:active {
	transform: translateY(0);
}

.submit-button:focus-visible {
	outline: 3px solid rgba(185,214,56,.75);
	outline-offset: 3px;
}

.security-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 26px 0 0;
	color: #8b9793;
	font-size: 12px;
}

.security-note svg {
	width: 16px;
	height: 16px;
	color: var(--forest-700);
}

.notify {
	z-index: 9999;
	width: min(350px, calc(100vw - 32px));
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 12px;
	background: #26342f;
	box-shadow: 0 18px 44px rgba(0,0,0,.2);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.notify p {
	margin: 0;
	padding: 14px 16px;
}

.notify.error {
	border-color: #f3c3bb;
	background: #fff3f1;
	color: #8f2f22;
}

@media (max-width: 880px) {
	.login-shell {
		grid-template-columns: 1fr;
	}

	.brand-panel {
		min-height: 260px;
	}

	.brand-panel__content {
		min-height: 260px;
		padding: 28px clamp(24px, 7vw, 56px);
	}

	.redisoft-mark {
		width: 104px;
	}

	.brand-copy {
		margin: auto 0 0;
		padding: 42px 0 0;
	}

	.brand-copy h1 {
		font-size: clamp(36px, 9vw, 54px);
	}

	.brand-copy p,
	.brand-footer {
		display: none;
	}

	.access-panel {
		padding: 42px 24px 52px;
	}

	.client-logo {
		margin-bottom: 30px;
	}
}

@media (max-width: 520px) {
	.brand-panel {
		min-height: 220px;
	}

	.brand-panel__content {
		min-height: 220px;
	}

	.brand-copy {
		padding-top: 30px;
	}

	.brand-copy h1 {
		font-size: 37px;
	}

	.access-panel {
		display: block;
	}

	.login-card {
		margin: 0 auto;
	}

	.client-logo {
		min-height: 54px;
	}

	.client-logo img {
		max-width: 155px;
		max-height: 68px;
	}

	.login-heading h2 {
		font-size: 36px;
	}

	.field__label-row {
		align-items: center;
	}
}

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