﻿:root {
	--primary: #176b56;
	--primary-dark: #0f5242;
	--primary-soft: #e9f5f1;
	--accent: #f2b441;
	--danger: #c63f3f;
	--ink: #18332c;
	--muted: #6d7f79;
	--line: #dfe9e5;
	--surface: #ffffff;
	--page: #f4f8f6;
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
	margin: 0;
}

body {
	min-height: 100vh;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--ink);
	background: radial-gradient(circle at 8% 8%, rgba(23, 107, 86, .10), transparent 31%), radial-gradient(circle at 92% 88%, rgba(242, 180, 65, .13), transparent 30%), var(--page);
}

.login-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
}

.login-shell {
	width: min(1080px, 100%);
	min-height: 650px;
	display: grid;
	grid-template-columns: 1.03fr .97fr;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid rgba(23, 107, 86, .10);
	border-radius: 28px;
	box-shadow: 0 24px 70px rgba(29, 66, 56, .14);
}

/* =============================
                   LEFT / SCHOOL DISCIPLINE SIDE
                   ============================= */
.school-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 52px 54px 42px;
	overflow: hidden;
	color: #fff;
	background: linear-gradient(145deg, rgba(9, 77, 61, .98), rgba(23, 107, 86, .95));
}

	.school-panel::before,
	.school-panel::after {
		content: "";
		position: absolute;
		border-radius: 999px;
		pointer-events: none;
	}

	.school-panel::before {
		width: 340px;
		height: 340px;
		top: -160px;
		right: -130px;
		background: rgba(255,255,255,.08);
	}

	.school-panel::after {
		width: 260px;
		height: 260px;
		bottom: -135px;
		left: -95px;
		background: rgba(242,180,65,.13);
	}

.brand,
.school-copy,
.school-bottom {
	position: relative;
	z-index: 1;
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.brand-mark {
	width: 54px;
	height: 54px;
	flex: 0 0 54px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255,255,255,.24);
	border-radius: 17px;
	background: rgba(255,255,255,.12);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}

	.brand-mark svg {
		width: 31px;
		height: 31px;
	}

.brand-title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: .03em;
}

.brand-subtitle {
	margin-top: 2px;
	color: rgba(255,255,255,.72);
	font-size: 13px;
}

.school-copy {
	max-width: 455px;
	margin: 54px 0 38px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	padding: 7px 12px;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 999px;
	background: rgba(255,255,255,.09);
	color: rgba(255,255,255,.90);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.eyebrow-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px rgba(242,180,65,.13);
}

.school-copy h1 {
	margin: 0 0 17px;
	font-size: clamp(36px, 4vw, 54px);
	line-height: 1.05;
	font-weight: 850;
	letter-spacing: -.035em;
}

	.school-copy h1 span {
		color: #ffd47d;
	}

.school-copy > p {
	max-width: 420px;
	margin: 0;
	color: rgba(255,255,255,.78);
	font-size: 16px;
	line-height: 1.75;
}

.feature-list {
	display: grid;
	gap: 13px;
	margin-top: 30px;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 12px;
	color: rgba(255,255,255,.90);
	font-size: 14px;
}

.feature-icon {
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: rgba(255,255,255,.11);
}

	.feature-icon svg {
		width: 17px;
		height: 17px;
	}

.school-bottom {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255,255,255,.60);
	font-size: 12px;
}

	.school-bottom::before {
		content: "";
		width: 24px;
		height: 1px;
		background: rgba(255,255,255,.34);
	}

/* =============================
                   RIGHT / LOGIN FORM
                   ============================= */
.form-panel {
	display: flex;
	align-items: center;
	padding: 58px 64px;
	background: rgba(255,255,255,.98);
}

.form-wrap {
	width: 100%;
	max-width: 390px;
	margin: 0 auto;
}

.mobile-brand {
	display: none;
}

.form-heading {
	margin-bottom: 30px;
}

	.form-heading .mini-title {
		margin-bottom: 9px;
		color: var(--primary);
		font-size: 12px;
		font-weight: 800;
		letter-spacing: .10em;
		text-transform: uppercase;
	}

	.form-heading h2 {
		margin: 0 0 9px;
		color: #15382f;
		font-size: 32px;
		font-weight: 800;
		letter-spacing: -.025em;
	}

	.form-heading p {
		margin: 0;
		color: var(--muted);
		font-size: 14px;
		line-height: 1.6;
	}

.validation-summary-valid {
	display: none;
}

.validation-alert {
	margin-bottom: 20px;
	padding: 12px 14px;
	border: 1px solid #f1caca;
	border-radius: 12px;
	background: #fff4f4;
	color: #9d3131;
	font-size: 13px;
}

	.validation-alert ul {
		margin: 0;
		padding-left: 20px;
	}

.field-group {
	margin-bottom: 19px;
}

.field-label {
	display: block;
	margin-bottom: 8px;
	color: #284a41;
	font-size: 13px;
	font-weight: 700;
}

.input-wrap {
	position: relative;
}

.input-icon {
	position: absolute;
	top: 50%;
	left: 15px;
	width: 19px;
	height: 19px;
	transform: translateY(-50%);
	color: #7c958d;
	pointer-events: none;
}

.login-input {
	width: 100%;
	height: 52px;
	padding: 0 46px 0 47px;
	border: 1px solid var(--line);
	border-radius: 13px;
	outline: 0;
	background: #fbfdfc;
	color: var(--ink);
	font-size: 14px;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

	.login-input::placeholder {
		color: #a1aea9;
	}

	.login-input:hover {
		border-color: #c6d8d1;
	}

	.login-input:focus {
		border-color: var(--primary);
		background: #fff;
		box-shadow: 0 0 0 4px rgba(23,107,86,.10);
	}

.password-toggle {
	position: absolute;
	top: 50%;
	right: 10px;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	padding: 0;
	transform: translateY(-50%);
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #758a83;
	cursor: pointer;
}

	.password-toggle:hover {
		background: var(--primary-soft);
		color: var(--primary);
	}

	.password-toggle svg {
		width: 19px;
		height: 19px;
	}

.field-error {
	display: block;
	min-height: 18px;
	margin-top: 5px;
	color: var(--danger);
	font-size: 12px;
}

.form-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 3px 0 24px;
}

.remember-check {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #526961;
	font-size: 13px;
	cursor: pointer;
}

	.remember-check input {
		width: 17px;
		height: 17px;
		margin: 0;
		accent-color: var(--primary);
	}

.secure-note {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #8b9c96;
	font-size: 12px;
}

	.secure-note svg {
		width: 14px;
		height: 14px;
	}

.login-btn {
	width: 100%;
	min-height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	border: 0;
	border-radius: 13px;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: #fff;
	font-size: 15px;
	font-weight: 750;
	box-shadow: 0 12px 26px rgba(23,107,86,.22);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

	.login-btn:hover {
		transform: translateY(-1px);
		filter: brightness(1.025);
		box-shadow: 0 15px 30px rgba(23,107,86,.28);
	}

	.login-btn:active {
		transform: translateY(0);
	}

	.login-btn svg {
		width: 18px;
		height: 18px;
	}

.form-footer {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #edf2ef;
	text-align: center;
	color: #8b9b96;
	font-size: 12px;
	line-height: 1.65;
}

@media (max-width: 900px) {
	.login-shell {
		width: min(520px, 100%);
		min-height: auto;
		grid-template-columns: 1fr;
	}

	.school-panel {
		display: none;
	}

	.form-panel {
		padding: 42px 38px;
	}

	.mobile-brand {
		display: flex;
		align-items: center;
		gap: 12px;
		margin-bottom: 34px;
	}

		.mobile-brand .brand-mark {
			width: 46px;
			height: 46px;
			flex-basis: 46px;
			color: #fff;
			background: var(--primary);
		}

		.mobile-brand .brand-title {
			color: #173a31;
			font-size: 16px;
		}

		.mobile-brand .brand-subtitle {
			color: #81928c;
		}
}

@media (max-width: 575.98px) {
	.login-page {
		align-items: stretch;
		padding: 0;
		background: #fff;
	}

	.login-shell {
		width: 100%;
		min-height: 100vh;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.form-panel {
		align-items: flex-start;
		padding: 30px 24px 26px;
	}

	.form-wrap {
		max-width: none;
	}

	.mobile-brand {
		margin-bottom: 44px;
	}

	.form-heading h2 {
		font-size: 29px;
	}

	.form-meta {
		align-items: flex-start;
		gap: 12px;
	}
}
