@font-face {
	font-family: "Literata";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/literata-greek.woff2") format("woff2");
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
	font-family: "Literata";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/literata-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400 700;
	font-stretch: 100%;
	font-display: swap;
	src: url("../fonts/roboto-greek.woff2") format("woff2");
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400 700;
	font-stretch: 100%;
	font-display: swap;
	src: url("../fonts/roboto-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--teal: #0b5a4b;
	--teal-field: #105449;
	--teal-dark: #084538;
	--teal-darker: #063a2f;
	--lime: #d3e85b;

	--paper: #fff;
	--ink: #1b2220;
	--ink-2: #77857f;
	--rule: #e3e9e7;

	--display: "Literata", Georgia, "DejaVu Serif", serif;
	--ui: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
		"Noto Sans", "DejaVu Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body.login-page {
	margin: 0;
	font-family: var(--ui);
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.login-split {
	display: flex;
	min-height: 100vh;
}

.login-brand {
	position: relative;
	flex: 0 0 45%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0;
	color: var(--paper);

	background-color: var(--teal-field);
	background-image: url("../img/mosaic-grid.svg");
	background-repeat: repeat;
	background-size: 21px 21px;
	background-position: 0 0;
}

.field {
	position: absolute;
	inset: 0;
	background-image: url("../img/ekke-mosaic.svg");
	background-repeat: repeat;
	background-size: 651px 651px;
	background-position: 0 0;
	-webkit-mask-image: linear-gradient(to bottom, #000 0 34%, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0.15) 100%);
	mask-image: linear-gradient(to bottom, #000 0 34%, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0.15) 100%);
}

.band {
	position: relative;
	margin-bottom: 3%;
	padding: 3rem 3rem 3.25rem;
	background: var(--teal-field);
	box-shadow: 0 0 44px 36px var(--teal-field);
}

.brand-title {
	margin: 0;
	max-width: 11em;
	font-family: var(--display);
	font-weight: 400;

	font-variation-settings: "opsz" 48;
	font-size: clamp(1.9rem, 3.05vw, 3.05rem);
	line-height: 1.14;
	letter-spacing: -0.025em;
	text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}

.brand-foot {
	display: flex;
	align-items: center;
	gap: 0.95rem;
	margin: 1.6rem 0 0;
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.145em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.brand-foot::before {
	content: "";
	flex: none;
	width: 2.5rem;
	height: 2px;
	background: var(--lime);
}

.login-panel {
	flex: 1 1 55%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 2rem;
	background: var(--paper);
}

.login-form {
	width: 100%;
	max-width: 25rem;
}

.login-form h2 {
	margin: 0 0 0.5rem;
	font-size: 1.375rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.login-intro {
	margin: 0 0 2.5rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--ink-2);
	text-wrap: balance;
}

.field-row { margin-bottom: 1.75rem; }

.field-row label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--ink);
}

.field-row input {
	width: 100%;
	padding: 0.45rem 2px 0.6rem;
	border: 0;
	border-bottom: 1px solid var(--rule);
	border-radius: 0;
	font-family: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: transparent;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field-row input::placeholder { color: #9aa5a2; }
.field-row input:hover { border-bottom-color: #c2ccc9; }

.field-row input:focus {
	outline: 0;
	border-bottom-color: var(--teal);
	box-shadow: 0 1px 0 0 var(--teal);
}

.btn-login {
	width: 100%;
	margin-top: 0.25rem;
	padding: 0.9rem 1rem;
	border: 0;
	border-radius: 3px;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--paper);
	background: var(--teal);
	cursor: pointer;
	transition: background-color 0.16s ease;
}

.btn-login:hover  { background: var(--teal-dark); }
.btn-login:active { background: var(--teal-darker); }

.btn-login:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 3px;
}

.notice {
	margin-bottom: 1.5rem;
	padding: 0.7rem 0.85rem;
	border-left: 3px solid;
	border-radius: 2px;
	font-size: 0.875rem;
	line-height: 1.5;
}

.notice-error   { border-color: #b3261e; background: #fdf1f0; color: #8c1d18; }
.notice-info    { border-color: var(--teal); background: #edf5f3; color: #0a4a41; }
.notice-message { border-color: #c9761f; background: #fdf6ee; color: #7f4a11; }

@media (max-width: 1199px) {
	.band { padding: 2.5rem 2.25rem 2.75rem; margin-bottom: 12%; }
}

@media (max-width: 860px) {
	.login-split { flex-direction: column; }

	.login-brand {
		flex: 0 0 auto;
		min-height: 17rem;
	}

	@media (min-width: 600px) {
		.login-brand { min-height: 26rem; }
		.band { padding: 3rem 2.5rem 2.75rem; }
		.login-panel { padding: 3.5rem 2.5rem 4rem; }
	}

	.band {
		margin-bottom: 0;
		padding: 2.25rem 1.75rem 2rem;
	}

	.login-panel { padding: 2.75rem 1.75rem 3.5rem; }
}

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