/* Albany Login — acceso frontal de alumnos */

.albany-login-shell,
.albany-login-shell * {
	box-sizing: border-box;
}

.albany-login-shell {
	--albany-red: #ed0000;
	position: fixed;
	inset: 0;
	z-index: 10;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100%;
	min-height: 100vh;
	min-height: 100svh;
	padding: 56px 24px;
	overflow-x: hidden;
	overflow-y: auto;
	font-family: "Inter", sans-serif;
}

.albany-login-card {
	width: 100%;
	max-width: 500px;
	margin: auto;
	padding: 34px 42px 40px;
	border: 1px solid #dde2e8;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(20, 25, 35, 0.1);
}

.albany-login-card--connected {
	margin: 60px auto;
	text-align: center;
}

.albany-login-brand {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.albany-login-brand img {
	display: block;
	width: auto;
	max-width: 240px;
	height: auto;
	max-height: 70px;
	object-fit: contain;
}

.albany-login-brand__name {
	color: #111;
	font-family: "Poppins", sans-serif;
	font-size: 24px;
	font-weight: 500;
}

.albany-login-card h1,
.albany-login-card h2 {
	margin: 0 0 4px !important;
	color: #111 !important;
	font-family: "Poppins", sans-serif !important;
	font-size: 24px !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	text-align: center;
}

.albany-login-card h1 span {
	display: block;
}

.albany-login-heading {
	max-width: 390px;
	margin: 0 auto 24px;
	text-align: center;
}

.albany-login-intro {
	margin: 0;
	color: #68707c;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.albany-login-notice {
	margin: 0 0 22px;
	padding: 12px 14px;
	border-radius: 10px;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.albany-login-notice--error {
	border: 1px solid #ffc5c5;
	background: #fff4f4;
	color: #8f1111;
}

.albany-login-notice--success {
	border: 1px solid #bfe6c9;
	background: #f2fbf4;
	color: #246b37;
}

.albany-caps-lock {
	display: block;
	margin-top: 8px;
	color: #8a5a00;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	line-height: 1.4;
}

.albany-caps-lock[hidden] {
	display: none;
}

.albany-login-form p {
	margin: 0 0 19px;
}

.albany-login-form label {
	display: block;
	margin-bottom: 7px;
	color: #252832;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 500;
}

.albany-login-form input[type="text"],
.albany-login-form input[type="password"] {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid #d6dbe1;
	border-radius: 11px;
	outline: 0;
	background: #fff;
	color: #20242c;
	font-family: "Inter", sans-serif;
	font-size: 15px;
	font-weight: 400;
	box-shadow: none;
	transition: border-color 220ms ease, box-shadow 220ms ease;
}

.albany-login-form input[type="text"]:focus,
.albany-login-form input[type="password"]:focus {
	border-color: #ed0000;
	box-shadow: 0 0 0 3px rgba(237, 0, 0, 0.11);
}

.albany-login-password {
	position: relative;
	display: block;
}

.albany-login-password input {
	padding-right: 54px !important;
}

.albany-login-form .albany-login-password .albany-password-toggle {
	position: absolute;
	top: 0 !important;
	right: 5px !important;
	bottom: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: auto 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0;
	background: transparent !important;
	color: #707783;
	box-shadow: none !important;
	cursor: pointer;
	transform: none !important;
	transition: color 180ms ease, background-color 180ms ease;
}

.albany-login-form .albany-login-password .albany-password-toggle:hover,
.albany-login-form .albany-login-password .albany-password-toggle:focus,
.albany-login-form .albany-login-password .albany-password-toggle:active {
	border: 0 !important;
	background: transparent !important;
	color: var(--albany-red);
	box-shadow: none !important;
}

.albany-eye {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.albany-eye--hide,
.albany-password-toggle[aria-pressed="true"] .albany-eye--show {
	display: none;
}

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

.albany-login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 2px 0 24px;
}

.albany-login-options label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-weight: 400;
}

.albany-login-options input[type="checkbox"] {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: #ed0000;
}

.albany-login-options a {
	color: #555d69;
	font-family: "Inter", sans-serif;
	font-size: 13px;
	font-weight: 400;
	text-decoration: none;
}

.albany-login-options a:hover {
	color: #ed0000;
	text-decoration: underline;
}

.albany-login-form .albany-login-submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 12px 24px !important;
	border: 1px solid #ed0000 !important;
	border-radius: 12px !important;
	background: #ed0000 !important;
	color: #fff !important;
	font-family: "Inter", sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	text-align: center;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color 280ms ease, border-color 280ms ease, box-shadow 280ms ease, transform 280ms ease;
}

.albany-login-form .albany-login-submit:hover {
	border-color: #c90000 !important;
	background: #c90000 !important;
	box-shadow: 0 11px 24px rgba(237, 0, 0, 0.25) !important;
	transform: translateY(-2px);
}

.albany-login-form .albany-login-submit:active,
.albany-login-form .albany-login-submit:focus,
.albany-login-form .albany-login-submit:focus-visible,
.albany-login-form .albany-login-submit:disabled,
.albany-login-form .albany-login-submit.is-loading {
	box-shadow: none !important;
}

.albany-login-submit__loading {
	display: none;
}

.albany-login-submit.is-loading {
	cursor: wait;
	opacity: 0.82;
	pointer-events: none;
}

.albany-login-submit.is-loading .albany-login-submit__label {
	display: none;
}

.albany-login-submit.is-loading .albany-login-submit__loading {
	display: inline;
}

.albany-login-help {
	margin: 18px 0 0 !important;
	text-align: center;
}

.albany-login-help a,
.albany-login-footer a {
	color: #626a76;
	font-family: "Inter", sans-serif;
	font-size: 13px;
	font-weight: 400;
	text-decoration: none;
}

.albany-login-help a:hover,
.albany-login-footer a:hover {
	color: #ed0000;
	text-decoration: underline;
}

.albany-login-footer {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #edf0f3;
	text-align: center;
}

.albany-login-footer a {
	font-size: 12px;
}

.albany-login-submit:focus-visible,
.albany-password-toggle:focus-visible,
.albany-login-options a:focus-visible,
.albany-login-help a:focus-visible,
.albany-login-footer a:focus-visible {
	outline: 3px solid rgba(237, 0, 0, 0.2);
	outline-offset: 3px;
}

@media (max-width: 600px) {
	.albany-login-shell {
		/* Se referencia directamente a la pantalla para ignorar límites de Avada. */
		position: fixed;
		inset: 0;
		z-index: 9999;
		align-items: flex-start !important;
		width: 100%;
		max-width: none;
		height: 100vh;
		height: 100dvh;
		margin: 0;
		transform: none;
		min-height: 0;
		padding: 30px 12px calc(72px + env(safe-area-inset-bottom));
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.albany-login-card {
		width: 100%;
		max-width: 500px;
		margin: 0 auto;
		padding: 24px 22px 30px;
		border-radius: 16px;
	}

	.albany-login-brand {
		margin-bottom: 14px;
	}

	.albany-login-brand img {
		max-width: 205px;
		max-height: 58px;
	}

	.albany-login-card h1,
	.albany-login-card h2 {
		margin-bottom: 4px !important;
		font-size: 21px !important;
		line-height: 1.18 !important;
	}

	.albany-login-heading {
		margin-bottom: 22px;
	}

	.albany-login-intro {
		font-size: 14px;
		line-height: 1.45;
	}

	.albany-login-form input[type="text"],
	.albany-login-form input[type="password"] {
		font-size: 16px !important;
	}

	.albany-login-options {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}
}

/* Ajustes para teléfonos estrechos. */
@media (max-width: 420px) {
	.albany-login-shell {
		width: 100%;
		margin: 0;
		padding: 22px 10px calc(64px + env(safe-area-inset-bottom));
	}

	.albany-login-card {
		padding: 22px 18px 28px;
	}

	.albany-login-brand img {
		max-width: 190px;
	}
}

/* Ajustes para teléfonos especialmente estrechos. */
@media (max-width: 360px) {
	.albany-login-shell {
		width: 100%;
		margin: 0;
		padding-right: 8px;
		padding-left: 8px;
	}

	.albany-login-card {
		padding-right: 16px;
		padding-left: 16px;
	}

	.albany-login-card h1,
	.albany-login-card h2 {
		font-size: 20px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.albany-login-shell *,
	.albany-login-shell *::before,
	.albany-login-shell *::after {
		transition: none !important;
		animation: none !important;
	}

	.albany-login-form .albany-login-submit:hover {
		transform: none;
	}
}
