/* ==========================================================================
   Login de MyStudents -- mismo lenguaje visual que la app (plataform/css/app.css):
   fondo claro, franja azul superior con el logo, tarjeta blanca redondeada que "sube" sobre la franja,
   campos suaves y botón azul. Todo escopeado en body.login-page y cargado DESPUÉS de main.css/responsive.css.
   ========================================================================== */
body.login-page {
	--ms-primary: #1d4ed8; --ms-text: #0f172a; --ms-muted: #64748b; --ms-line: #e2e8f0;
	font-family: 'Inter', 'Roboto', Arial, sans-serif;
	background: #f2f5fb !important; background-image: none !important;
	min-height: 100vh; overflow-x: hidden;
}
body.login-page:before { display: none; }

/* Franja superior con el logo */
body.login-page > header {
	min-height: 0; padding: 34px 20px 96px; justify-content: center; align-items: center;
	background: linear-gradient(135deg, #0f2a5e 0%, #1d4ed8 100%);
	border-radius: 0 0 36px 36px; display: flex;
}
body.login-page .contentLogo { position: static; }
body.login-page .contentLogo img { max-width: 190px; height: auto; display: block; filter: none; }

/* Tarjeta */
body.login-page .login-main { flex: 1 0 auto; padding: 0 16px 28px; margin-top: -64px; align-items: flex-start; }
body.login-page .contentSite { justify-content: center; }
body.login-page .contentForm {
	width: 100%; max-width: 420px; padding: 26px 24px 24px; margin: 0; border: 0; border-radius: 26px;
	background: #fff; backdrop-filter: none; box-shadow: 0 18px 50px -18px rgba(15, 23, 42, .35);
}
body.login-page .ls-title { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: var(--ms-text); text-align: center; }
body.login-page .ls-sub { margin: 0 0 18px; font-size: 13.5px; color: var(--ms-muted); text-align: center; }
/* Logo de la institución, dentro de la tarjeta */
body.login-page .contentForm .logoSchool { position: static; display: flex; justify-content: center; max-width: none; height: auto; margin: 0 0 14px; }
body.login-page .contentForm .logoSchool img { max-width: 170px; max-height: 84px; width: auto; height: auto; object-fit: contain; filter: none; }

body.login-page .contentInput { margin-top: 14px; }
body.login-page .contentInput label { display: block; font-size: 13px; font-weight: 700; color: #334155; letter-spacing: 0; margin: 0 0 6px; }
body.login-page .contentInput input:not([type="checkbox"]),
body.login-page .contentInput select {
	width: 100%; height: 50px; margin: 0; padding: 0 14px; border: 2px solid transparent; border-radius: 14px;
	background: #f1f5f9 !important; font-size: 15px; font-family: inherit; color: var(--ms-text); box-sizing: border-box; box-shadow: none;
	transition: border-color .15s, background .15s;
}
body.login-page .contentInput select { -webkit-appearance: menulist; appearance: auto; }
body.login-page .contentInput input:not([type="checkbox"]):focus,
body.login-page .contentInput select:focus { outline: 0; border-color: #93b4f5; background: #fff !important; box-shadow: 0 0 0 4px rgba(29, 78, 216, .12); }

/* Recordarme (se deja el checkbox nativo: el de materialize necesita su label) */
body.login-page .contentInputCheck { display: flex; align-items: center; gap: 4px; margin-top: 12px; }
body.login-page .contentInputCheck label { display: inline-block; margin: 0; font-weight: 600; color: var(--ms-muted); }

/* Botones */
body.login-page .btnForm {
	width: 100%; height: 52px; margin-top: 20px; padding: 0 16px; border: 0; border-radius: 14px; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	font-family: inherit; font-size: 15.5px; font-weight: 800; letter-spacing: .3px; color: #fff;
	background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%); box-shadow: 0 10px 22px -8px rgba(29, 78, 216, .6);
	transition: transform .12s, box-shadow .12s;
}
body.login-page .btnForm:hover { background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%); transform: none; }
body.login-page .btnForm:active { transform: scale(.985); }
body.login-page .btnForm i { font-size: 22px; line-height: 1; }
body.login-page #btnWebauthnLogin { margin-top: 0; background: #0f172a; box-shadow: 0 10px 22px -10px rgba(15, 23, 42, .6); }
body.login-page #btnWebauthnLogin:hover { background: #1e293b; }
body.login-page .ls-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px; color: #94a3b8; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
body.login-page .ls-or:before, body.login-page .ls-or:after { content: ''; flex: 1; height: 1px; background: var(--ms-line); }

/* Pie sobrio */
body.login-page footer.page-footer {
	margin: 0; padding: 4px 16px 26px; min-height: 0; background: none; border: 0; backdrop-filter: none;
	display: block; text-align: center; color: var(--ms-muted);
}
body.login-page footer.page-footer .container { width: auto; max-width: 560px; margin: 0 auto; padding: 0; display: block; }
body.login-page footer.page-footer .row { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; }
body.login-page footer.page-footer .col { width: auto; float: none; margin: 0; padding: 0; text-align: center; }
body.login-page footer.page-footer .col.l6 { display: none; }
body.login-page footer.page-footer h4 { margin: 0; font-size: 13.5px; font-weight: 700; color: #334155; }
body.login-page footer.page-footer ul { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 6px 0 0; padding: 0; list-style: none; }
body.login-page footer.page-footer ul li { margin: 0; display: inline-block; }
body.login-page footer.page-footer ul > br, body.login-page footer.page-footer ul li:last-child { display: none; }
body.login-page footer.page-footer ul li a { color: var(--ms-primary); font-size: 13px; font-weight: 700; text-decoration: none; }
body.login-page footer.page-footer .footer-copyright { margin-top: 10px; padding: 0; background: none; border: 0; font-size: 11.5px; line-height: 1.5; color: #94a3b8; }
body.login-page footer.page-footer .footer-copyright a { display: none; }

@media (max-width: 480px) {
	body.login-page > header { padding: 26px 16px 88px; border-radius: 0 0 28px 28px; }
	body.login-page .contentForm { padding: 22px 18px 20px; border-radius: 22px; }
}

/* Ajustes tras revisar capturas */
body.login-page > header { justify-content: center !important; }
body.login-page .contentLogo { margin: 0 auto; }
body.login-page .contentInput label, body.login-page .contentInput input, body.login-page .contentInput select, body.login-page .btnForm { font-family: 'Inter', Arial, sans-serif !important; }
body.login-page .contentInput label { font-weight: 700; color: #334155; }
body.login-page .contentForm .logoSchool { width: 100%; margin-left: 0; margin-right: 0; left: auto; top: auto; }
body.login-page footer.page-footer h4, body.login-page footer.page-footer .greyBlue-text, body.login-page footer.page-footer h4.greyBlue-text { color: #334155 !important; font-family: 'Inter', Arial, sans-serif; }
body.login-page footer.page-footer ul li a, body.login-page footer.page-footer .text-lighten-3 { color: #1d4ed8 !important; }
body.login-page footer.page-footer { padding-bottom: 84px; }
body.login-page > header { width: 100%; box-sizing: border-box; }
body.login-page > header .contentLogo { width: 100%; max-width: none; position: static !important; display: flex; justify-content: center; margin: 0; }
body.login-page > header .contentLogo a { display: block; }
@media (max-width: 480px) { body.login-page .pwa-install-btn { padding: 9px 14px !important; font-size: 13px !important; bottom: 14px !important; right: 14px !important; } }
