/* Página de ingreso */

.ingreso { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

.ingreso__marca {
	position: relative; overflow: hidden; color: #fff;
	/* Foto del curso bajo un velo azul: más fuerte a la izquierda (donde va el texto) y más suave a la derecha */
	background-color: var(--azul);
	background-image:
		linear-gradient(100deg, rgba(3, 90, 166, .94) 0%, rgba(3, 90, 166, .82) 42%, rgba(8, 130, 205, .58) 100%),
		url("../img/ingreso-fondo.webp");
	background-size: cover; background-position: center 35%; background-repeat: no-repeat;
	display: flex; align-items: center; padding: 56px clamp(32px, 6vw, 88px);
}
.ingreso__marca::before {
	/* Cuadrícula tenue tipo carta aeronáutica */
	content: ""; position: absolute; inset: 0; opacity: .14;
	background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 70% 60%, #000 20%, transparent 75%);
}
.ingreso__marca::after {
	content: "DRONES"; position: absolute; right: -2%; bottom: -6%;
	font-weight: 900; font-size: clamp(90px, 14vw, 220px); letter-spacing: -.04em; line-height: 1;
	color: rgba(255, 255, 255, .07); pointer-events: none;
}
.ingreso__marca-contenido { position: relative; z-index: 1; max-width: 520px; }
.ingreso__marca .logo { color: #fff; }
.ingreso__marca .logo__alas { filter: brightness(0) invert(1); }
.ingreso__marca .logo__chile { background: #fff; color: var(--azul); }
.ingreso__sobretitulo {
	margin: 48px 0 12px; font-family: var(--fuente-tec); font-size: .8rem; font-weight: 600;
	letter-spacing: .24em; text-transform: uppercase; opacity: .9;
}
.ingreso__titulo { font-size: clamp(2.6rem, 5vw, 4.3rem); font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.02em; margin-bottom: 28px; }
.ingreso__titulo span {
	display: inline-block; margin-top: 8px; padding: 4px 18px 8px; border-radius: 999px;
	background: #fff; color: var(--azul);
}
.ingreso__puntos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 1.02rem; }
.ingreso__puntos li { display: flex; gap: 10px; align-items: center; }
.ingreso__puntos li::before {
	content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%;
	background: rgba(255, 255, 255, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ingreso__dron {
	position: absolute; right: 6%; top: 3%; width: clamp(120px, 13vw, 190px); color: rgba(255, 255, 255, .55);
	animation: flotar 6s ease-in-out infinite;
}
@keyframes flotar { 50% { transform: translateY(-14px) rotate(-2deg); } }

.ingreso__panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; gap: 20px; }
.ingreso__logo-movil { display: none; }
.ingreso__form { width: 100%; max-width: 420px; padding: 36px 32px; border-radius: 24px; }
.ingreso__form h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 4px; }
.ingreso__form > .texto-suave { margin-bottom: 24px; }
.ingreso__form .boton--bloque { min-height: 52px; font-size: 1.02rem; margin-top: 4px; }
.ingreso__ayuda {
	display: flex; flex-direction: column; gap: 4px; margin-top: 24px; padding-top: 20px;
	border-top: 1px solid var(--borde); font-size: .88rem; color: var(--texto-suave);
}
.ingreso__ayuda strong { color: var(--tinta); }
.ingreso__ayuda .enlace { margin-top: 4px; }
.ingreso__pie { color: var(--texto-tenue); font-size: .8rem; text-align: center; margin: 0; }
#edr-usuario { font-family: var(--fuente-tec); letter-spacing: .04em; font-size: 1.05rem; }

/* Paso del código de verificación */
.campo-codigo { font-family: var(--fuente-tec); font-size: 2rem; font-weight: 700; letter-spacing: .5em; text-align: center; padding-left: calc(.5em + 12px); min-height: 64px; }
.campo-codigo::placeholder { letter-spacing: .5em; color: var(--texto-tenue); opacity: .45; }
.ingreso__acciones { align-items: flex-start; gap: 10px; }
.ingreso__acciones form { margin: 0; }
.ingreso__acciones .enlace:disabled { color: var(--texto-tenue); cursor: not-allowed; text-decoration: none; }
.ingreso__form .aviso { margin-bottom: 16px; }
.ingreso__form .texto-tenue { margin: 0 0 16px; }

@media (max-width: 860px) {
	.ingreso { grid-template-columns: 1fr; }
	.ingreso__marca { display: none; }
	.ingreso__panel { justify-content: flex-start; padding-top: 0; background: linear-gradient(180deg, var(--azul) 0, var(--cian) 220px, var(--fondo) 220px); }
	.ingreso__logo-movil { display: block; padding: 36px 0 8px; }
	.ingreso__logo-movil .logo { color: #fff; transform: scale(1.15); }
	.ingreso__logo-movil .logo__alas { filter: brightness(0) invert(1); }
	.ingreso__logo-movil .logo__chile { background: #fff; color: var(--azul); }
	.ingreso__form { padding: 28px 22px; }
}

/* Logo oficial sobre el azul */
.ingreso__marca .logo--img { height: 72px; }
@media (max-width: 860px) { .ingreso__logo-movil .logo--img { height: 56px; margin: 0 auto; transform: none; } }
