/* Refresh de login.php -- mismo lenguaje visual que el hero nuevo de la home (fondo
   navy con glow celeste, tipografía Inter, logo cursivo). Todo escopeado bajo
   body.login-modern para no tocar .contentForm/.contentInput/.btnForm/.titleForm,
   que son clases compartidas por decenas de formularios de myBoard -- ver
   inc/formLogin.php, que se deja intacto (los ids que usa webauthnLogin.js no cambian). */

body.login-modern {
	margin: 0;
	/* main.css define body{height:100vh} fijo (pensado para su propio layout) -- acá
	   se neutraliza para que la tarjeta + el link "Volver" no queden recortados en
	   pantallas chicas si el contenido termina siendo más alto que el viewport. */
	height: auto;
	min-height: 100vh;
	font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	background:
		radial-gradient(640px 420px at 12% 8%, rgba(34,211,238,.16), transparent 60%),
		radial-gradient(560px 420px at 92% 92%, rgba(139,92,246,.16), transparent 60%),
		linear-gradient(180deg, #0b1220 0%, #0f172a 55%, #11263d 100%);
	display: flex;
	flex-direction: column;
}

body.login-modern header {
	background: transparent !important;
	box-shadow: none !important;
	padding: 26px 0 10px;
}

body.login-modern .contentLogo {
	padding: 0;
}

body.login-modern .contentLogo img {
	max-width: 170px;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 4px 14px rgba(0,0,0,.35));
}

body.login-modern section {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 16px 40px;
}

body.login-modern .contentSite {
	width: 100%;
	max-width: 420px;
}

body.login-modern .contentForm {
	width: 100%;
	background: #ffffff;
	box-shadow: 0 30px 70px -20px rgba(0,0,0,.55);
	border-radius: 20px;
	padding: 8px 0 30px;
	animation: loginCardIn .4s ease;
}

@keyframes loginCardIn {
	from { transform: translateY(14px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

body.login-modern .titleForm p {
	margin: 22px 0 6px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: #0f172a;
}

body.login-modern .contentInput {
	width: 84%;
	margin-left: 8%;
	margin-top: 16px;
}

body.login-modern .contentInput label {
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: .03em;
	margin-bottom: 6px;
	display: inline-block;
}

body.login-modern .contentInput input[type="text"],
body.login-modern .contentInput input[type="password"] {
	width: 100%;
	margin-left: 0;
	height: 46px;
	font-family: inherit;
	font-size: 15px;
	background: #f8fafc !important;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	padding-left: 14px !important;
	transition: border-color .15s, box-shadow .15s, background .15s;
}

body.login-modern .contentInput input[type="text"]:focus,
body.login-modern .contentInput input[type="password"]:focus {
	outline: none;
	border-color: #2563eb;
	background: #ffffff !important;
	box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

/* Fila "Recordar acceso": el checkbox nativo queda chico y alineado con el texto,
   en vez del margin-left:10% pensado para el ancho de .contentInput genérico. */
body.login-modern .contentInput:has(.checkLoginAccess) label {
	display: flex;
	align-items: center;
	gap: 8px;
	text-transform: none;
	font-weight: 500;
	font-size: 13px;
	color: #64748b;
	cursor: pointer;
}

body.login-modern .checkLoginAccess {
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	accent-color: #2563eb;
}

body.login-modern .btnForm {
	width: 84%;
	margin-left: 8%;
	margin-top: 22px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-family: inherit;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .02em;
	border-radius: 12px;
	background: linear-gradient(90deg, #2563eb, #22d3ee);
	box-shadow: 0 10px 24px -8px rgba(37,99,235,.5);
	border: none;
}

body.login-modern .btnForm:hover {
	background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
	filter: brightness(1.03);
}

body.login-modern .btnForm i {
	font-size: 20px;
}

body.login-modern #webauthnLoginWrap {
	width: 84%;
	margin: 18px 8% 0;
}

body.login-modern #webauthnLoginWrap .btnForm {
	width: 100% !important;
	margin-left: 0 !important;
	background: linear-gradient(90deg, #0ea5e9, #22d3ee) !important;
}

body.login-modern .login-back {
	display: block;
	text-align: center;
	margin: 4px auto 28px;
	color: rgba(255,255,255,.65);
	font-size: 13px;
	text-decoration: none;
	transition: color .15s;
}

body.login-modern .login-back:hover {
	color: #fff;
}

body.login-modern .login-back i {
	margin-right: 5px;
}

@media (max-width: 480px) {
	body.login-modern .contentSite { max-width: 94%; }
	body.login-modern .contentForm { border-radius: 16px; }
}
