:root {
	--blue: #106EBE;
	--blue-dark: #09558f;
	--blue-deep: #073b64;

	--mint: #0FFCBE;
	--mint-dark: #08c999;

	--text: #102b3d;
	--muted: #496575;

	--panel: rgba(255, 255, 255, 0.55);
	--panel-border: rgba(255, 255, 255, 0.62);

	--input-background: rgba(255, 255, 255, 0.76);
	--input-border: rgba(16, 110, 190, 0.28);

	--error-background: rgba(255, 238, 238, 0.90);
	--error-border: rgba(180, 50, 50, 0.45);
	--error-text: #842323;
}


* {
	box-sizing: border-box;
}


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


body {
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Helvetica,
		Arial,
		sans-serif;

	color: var(--text);

	background-image:
		linear-gradient(
			rgba(7, 59, 100, 0.08),
			rgba(7, 59, 100, 0.08)
		),
		url("../pictures/iPad 3 029.JPG");

	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}


/*
 * LOGIN PAGE
 */

.login-page {
	min-height: 100vh;

	display: flex;
	align-items: center;
	justify-content: flex-end;

	padding: 40px 8%;
}


/*
 * TRANSLUCENT LOGIN PANEL
 */

.login-panel {
	width: 100%;
	max-width: 430px;

	padding: 42px;

	background: var(--panel);

	border: 1px solid var(--panel-border);
	border-radius: 20px;

	box-shadow:
		0 20px 60px rgba(7, 59, 100, 0.22),
		0 4px 15px rgba(0, 0, 0, 0.08);

	/*
	 * Frosted glass effect.
	 * The image remains visible through the panel,
	 * but text stays readable.
	 */

	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}


/*
 * BRAND
 */

.login-brand {
	text-align: center;
	margin-bottom: 34px;
}


.brand-mark {
	width: 62px;
	height: 62px;

	margin: 0 auto 18px;

	border-radius: 18px;

	background:
		linear-gradient(
			145deg,
			var(--blue),
			var(--blue-dark)
		);

	display: flex;
	align-items: center;
	justify-content: center;

	box-shadow:
		0 8px 22px rgba(16, 110, 190, 0.25);
}


.brand-mark span {
	width: 20px;
	height: 20px;

	border-radius: 50%;

	background: var(--mint);

	box-shadow:
		0 0 0 7px rgba(15, 252, 190, 0.22),
		0 0 18px rgba(15, 252, 190, 0.45);
}


.login-brand h1 {
	margin: 0 0 8px;

	font-size: 29px;
	font-weight: 650;

	color: var(--blue-deep);
}


.login-brand p {
	margin: 0;

	font-size: 14px;
	line-height: 1.5;

	color: var(--muted);
}


/*
 * FORM
 */

.form-field {
	margin-bottom: 22px;
}


.form-field label {
	display: block;

	margin-bottom: 7px;

	font-size: 14px;
	font-weight: 650;

	color: var(--blue-deep);
}


.form-field input {
	width: 100%;
	height: 50px;

	padding: 0 14px;

	font-size: 16px;

	color: var(--text);

	background: var(--input-background);

	border: 1px solid var(--input-border);
	border-radius: 9px;

	outline: none;

	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease,
		background 0.15s ease;
}


.form-field input:focus {
	background: rgba(255, 255, 255, 0.92);

	border-color: var(--blue);

	box-shadow:
		0 0 0 3px rgba(15, 252, 190, 0.25);
}


/*
 * PASSWORD FIELD
 */

.password-container {
	position: relative;
}


.password-container input {
	padding-right: 70px;
}


.show-password {
	position: absolute;

	right: 8px;
	top: 50%;

	transform: translateY(-50%);

	border: 0;
	background: transparent;

	color: var(--blue);

	font-size: 13px;
	font-weight: 650;

	cursor: pointer;

	padding: 8px;
}


.show-password:hover {
	color: var(--blue-dark);
}


/*
 * LOGIN BUTTON
 */

.login-button {
	width: 100%;
	height: 52px;

	margin-top: 5px;

	border: 0;
	border-radius: 9px;

	background:
		linear-gradient(
			135deg,
			var(--blue),
			var(--blue-dark)
		);

	color: #ffffff;

	font-size: 16px;
	font-weight: 650;

	cursor: pointer;

	box-shadow:
		0 6px 18px rgba(16, 110, 190, 0.25);

	transition:
		transform 0.1s ease,
		box-shadow 0.15s ease;
}



.login-button:hover {
	box-shadow:
		0 8px 24px rgba(16, 110, 190, 0.35);
}


.login-button:active {
	transform: translateY(1px);
}


.login-button:focus-visible {
	outline: 3px solid var(--mint);
	outline-offset: 3px;
}


/*
 * ERROR MESSAGE
 */

.login-error {
	margin-bottom: 22px;

	padding: 12px 14px;

	border: 1px solid var(--error-border);
	border-radius: 8px;

	background: var(--error-background);
	color: var(--error-text);

	font-size: 14px;
	line-height: 1.45;

	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}


/*
 * FOOTER
 */

.login-footer {
	margin-top: 28px;

	text-align: center;

	font-size: 12px;
	color: var(--muted);
}


.login-footer p {
	margin: 0;
}


/*
 * TABLET
 */

@media (max-width: 900px) {

	.login-page {
		justify-content: center;

		padding: 30px;
	}

}


/*
 * PHONE
 */

@media (max-width: 520px) {

	body {
		background-attachment: scroll;
		background-size: cover;
		background-position: 43% center;
		background-repeat: no-repeat;
	}

	.login-page {
		min-height: 100svh;

		display: flex;
		align-items: flex-end;
		justify-content: center;

		padding:
			10px
			16px
			max(12px, env(safe-area-inset-bottom));
	}

	.login-panel {
		max-width: none;

		/* Less vertical space */
		padding: 20px 22px;

		border-radius: 18px;

		background: rgba(255, 255, 255, 0.55);

		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
	}

	.login-brand {
		margin-bottom: 16px;
	}
	
	.brand-mark {
		display: none;
	}

	.brand-mark span {
		width: 15px;
		height: 15px;
	}

	.login-brand h1 {
		font-size: 23px;
		margin-bottom: 3px;
	}

	.login-brand p {
		font-size: 12px;
	}

	.form-field {
		margin-bottom: 13px;
	}

	.form-field label {
		margin-bottom: 4px;
		font-size: 13px;
	}

	.form-field input {
		height: 44px;
	}

	.login-button {
		height: 46px;
		margin-top: 2px;
	}

	.login-footer {
		margin-top: 13px;
	}

}
.forgot-password-link {
	margin-top: 12px;

	text-align: center;
}


.forgot-password-link a {
	color: #106ebe;

	font-size: 12px;
	font-weight: 600;

	text-decoration: none;
}


.forgot-password-link a:hover {
	text-decoration: underline;
}