:root {
	color-scheme: light;
	--login-ink: #172b35;
	--login-muted: #697b84;
	--login-orange: #f38236;
	--login-orange-dark: #d96820;
	--login-border: #dce4e7;
}

*, *::before, *::after { box-sizing: border-box; }

html { min-width: 320px; }

body {
	margin: 0;
	background: #f6f8f8;
	color: var(--login-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.login-layout {
	display: grid;
	grid-template-columns: minmax(390px, 45%) minmax(0, 1fr);
	min-height: 100vh;
	min-height: 100dvh;
}

.login-visual {
	position: relative;
	isolation: isolate;
	min-height: 100%;
	background: #172c37 url('../assets/uploads/slider-compass-training.jpeg') center / cover no-repeat;
	color: #fff;
	overflow: hidden;
}

.login-visual-shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(13, 34, 45, .78) 0%, rgba(12, 32, 42, .18) 38%, rgba(11, 32, 42, .94) 100%);
}

.login-visual::after {
	content: "";
	position: absolute;
	right: -125px;
	bottom: -150px;
	width: 360px;
	height: 360px;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 50%;
	pointer-events: none;
}

.login-visual-content {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: clamp(30px, 4vw, 68px);
}

.login-visual-brand {
	display: flex;
	align-items: center;
	gap: 13px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .12em;
	line-height: 1.1;
}

.login-visual-brand small {
	display: block;
	margin-top: 4px;
	font-size: 9px;
	letter-spacing: .34em;
}

.login-brand-symbol {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255,255,255,.42);
	border-radius: 13px;
	background: rgba(255,255,255,.12);
	font-size: 27px;
	font-weight: 800;
	letter-spacing: -.13em;
}

.login-brand-symbol span { color: var(--login-orange); }

.login-visual-message {
	margin-top: auto;
	max-width: 570px;
	padding-bottom: clamp(50px, 8vh, 110px);
}

.login-visual-kicker, .login-eyebrow {
	color: var(--login-orange);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .19em;
}

.login-visual-message h2 {
	max-width: 560px;
	margin: 20px 0 17px;
	font-size: clamp(38px, 4.2vw, 66px);
	font-weight: 750;
	letter-spacing: -.055em;
	line-height: 1.06;
}

.login-visual-message p {
	max-width: 440px;
	margin: 0;
	color: rgba(255,255,255,.82);
	font-size: 16px;
	line-height: 1.7;
}

.login-visual-foot {
	color: rgba(255,255,255,.65);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .16em;
}

.login-visual-foot span { margin: 0 9px; color: var(--login-orange); }

.login-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background: radial-gradient(circle at 82% 8%, #fff 0, #f7f9f9 39%, #f3f6f6 100%);
}

.login-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 36px clamp(28px, 5vw, 88px);
}

.login-back {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #5d707a;
	font-size: 13px;
	font-weight: 650;
	transition: color .2s ease;
}

.login-back:hover { color: var(--login-orange-dark); }
.login-back i { font-size: 12px; }

.login-languages {
	display: inline-flex;
	gap: 3px;
	padding: 4px;
	border: 1px solid #e3e9eb;
	border-radius: 11px;
	background: #fff;
}

.login-languages a {
	min-width: 34px;
	padding: 7px 9px;
	border-radius: 7px;
	color: #73828a;
	font-size: 11px;
	font-weight: 800;
	text-align: center;
}

.login-languages a.active { background: var(--login-ink); color: #fff; }

.login-content {
	display: grid;
	flex: 1;
	place-items: center;
	padding: 24px clamp(24px, 5vw, 88px) 55px;
}

.login-card {
	width: min(100%, 480px);
	padding: clamp(30px, 3.2vw, 48px);
	border: 1px solid #e8edee;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(22, 47, 58, .09), 0 4px 16px rgba(22, 47, 58, .03);
}

.login-logo {
	display: block;
	width: 158px;
	height: auto;
	margin: 0 0 28px;
}

.login-eyebrow { margin-bottom: 11px; }

.login-card h1 {
	margin: 0 0 10px;
	font-size: clamp(29px, 2.5vw, 38px);
	font-weight: 750;
	letter-spacing: -.045em;
	line-height: 1.16;
}

.login-intro {
	margin: 0 0 32px;
	color: var(--login-muted);
	font-size: 14px;
	line-height: 1.6;
}

.login-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 22px;
	padding: 13px 14px;
	border: 1px solid #f2bdb4;
	border-radius: 10px;
	background: #fff4f1;
	color: #9c3526;
	font-size: 13px;
	line-height: 1.45;
}

.login-alert i { margin-top: 2px; }
.login-field-group + .login-field-group { margin-top: 19px; }

.login-field-group label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
}

.login-field {
	display: flex;
	align-items: center;
	height: 52px;
	border: 1px solid var(--login-border);
	border-radius: 10px;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.login-field:focus-within {
	border-color: var(--login-orange);
	box-shadow: 0 0 0 4px rgba(243,130,54,.13);
}

.login-field > i {
	flex: 0 0 44px;
	color: #8799a1;
	font-size: 17px;
	text-align: center;
}

.login-field input {
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0 14px 0 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--login-ink);
	font-size: 14px;
}

.login-field input::placeholder { color: #98a6ad; opacity: 1; }

.login-password-field input { padding-right: 4px; }

.login-password-toggle {
	align-self: stretch;
	flex: 0 0 46px;
	border: 0;
	border-radius: 0 9px 9px 0;
	background: transparent;
	color: #768892;
	cursor: pointer;
	font-size: 16px;
}

.login-password-toggle:hover { color: var(--login-ink); }

.login-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 54px;
	margin-top: 28px;
	border: 0;
	border-radius: 10px;
	background: var(--login-orange);
	box-shadow: 0 10px 22px rgba(243,130,54,.22);
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 800;
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.login-submit:hover { background: var(--login-orange-dark); box-shadow: 0 14px 25px rgba(217,104,32,.24); transform: translateY(-1px); }
.login-submit:active { transform: translateY(0); }

.login-access-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 25px 0 0;
	color: #8a9aa2;
	font-size: 11px;
	line-height: 1.5;
	text-align: center;
}

.login-access-note i { font-size: 14px; }

.login-footer {
	padding: 0 28px 25px;
	color: #8d9ca3;
	font-size: 11px;
	text-align: center;
}

a:focus-visible, button:focus-visible {
	outline: 3px solid rgba(243,130,54,.5);
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.login-layout { display: flex; flex-direction: column; }
	.login-visual { min-height: 195px; background-position: center 43%; }
	.login-visual-content { padding: 28px 34px; }
	.login-visual-message, .login-visual-foot { display: none; }
	.login-main { min-height: calc(100dvh - 195px); }
	.login-topbar { padding: 22px 34px; }
	.login-content { padding: 16px 24px 36px; }
}

@media (max-width: 560px) {
	.login-visual { min-height: 118px; background-position: center 42%; }
	.login-visual-content { padding: 24px; }
	.login-visual-brand { font-size: 12px; }
	.login-brand-symbol { width: 42px; height: 42px; font-size: 24px; }
	.login-main { min-height: calc(100dvh - 118px); }
	.login-topbar { padding: 18px 20px; }
	.login-content { display: block; padding: 12px 16px 30px; }
	.login-card { width: 100%; padding: 28px 22px; border-radius: 18px; }
	.login-logo { width: 136px; margin-bottom: 22px; }
	.login-intro { margin-bottom: 25px; }
}

@media (prefers-reduced-motion: reduce) {
	.login-back, .login-field, .login-submit { transition: none; }
}
