/* entrada.css — Páginas de entrada con claves (área de profesor y de alumno) */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1d1d1f;
  background: #f5f5f7 radial-gradient(1100px 520px at 50% -140px, #e3eefc 0%, rgba(245,245,247,0) 70%) no-repeat;
}

/* Barra superior: logo y volver */
.barra-entrada {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 24px; background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.barra-entrada .logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -.5px; color: #1d1d1f; text-decoration: none; }
.barra-entrada .logo span, .tarjeta-entrada .logo span { color: #FF0000; }
.volver-web {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  color: #1d1d1f; text-decoration: none; font-size: .92rem; font-weight: 600; background: #f0f0f3;
  transition: background .2s;
}
.volver-web:hover { background: #e4e4e9; }

/* Tarjeta con el formulario */
main.entrada { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px 48px; }
.form-container.tarjeta-entrada {
  width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 34px 30px 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.08);
}
.tarjeta-entrada .icono {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: #e8f1fc; color: #0071e3;
}
.tarjeta-entrada .icono svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tarjeta-entrada h1 { margin: 0; text-align: center; font-size: 1.6rem; letter-spacing: -.4px; }
.tarjeta-entrada .subtitulo { margin: 6px 0 24px; text-align: center; color: #6e6e73; font-size: .95rem; line-height: 1.45; }

.tarjeta-entrada label { display: block; margin: 0 0 6px; font-size: .88rem; font-weight: 600; color: #424245; }
.tarjeta-entrada input[type="email"], .tarjeta-entrada input[type="password"], .tarjeta-entrada input[type="text"] {
  width: 100%; padding: 13px 14px; margin: 0 0 16px; font: inherit; font-size: 1rem; color: #1d1d1f;
  background: #fbfbfd; border: 1px solid #d2d2d7; border-radius: 12px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.tarjeta-entrada input:focus { border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0,113,227,.15); background: #fff; }

/* Contraseña con «Mostrar» dentro del campo */
.password-container { position: relative; }
.password-container input { padding-right: 92px !important; }
.password-container #toggle-password {
  position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; margin: 0 !important;
  border: none; border-radius: 9px; background: transparent; color: #0071e3; font-family: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.password-container #toggle-password:hover { background: #eef4fd; }

.recordar { display: flex; align-items: center; gap: 8px; margin: 2px 0 18px; font-size: .9rem; color: #424245; cursor: pointer; }
.recordar input { width: 17px; height: 17px; margin: 0; accent-color: #0071e3; }

.btn-entrar {
  width: 100%; padding: 14px; border: none; border-radius: 12px; background: #0071e3; color: #fff;
  font-family: inherit; font-size: 1.02rem; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-entrar:hover { background: #0066cc; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,113,227,.25); }

.enlaces-entrada { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; font-size: .9rem; }
.enlaces-entrada a, .cambiar-area a { color: #0071e3; text-decoration: none; font-weight: 600; }
.enlaces-entrada a:hover, .cambiar-area a:hover { text-decoration: underline; }
.enlaces-entrada span { color: #6e6e73; }
.cambiar-area { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #ececf0; text-align: center; font-size: .9rem; color: #6e6e73; }

.pie-entrada { text-align: center; padding: 0 16px 22px; font-size: .8rem; color: #86868b; }

/* Pantalla «Entrando…» (área de profesor) */
html.comprobando .form-container, html.comprobando main.entrada { display: none; }
.entrando { display: none; }
html.comprobando .entrando { display: flex; flex: 1; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px; font-weight: 600; font-size: 17px; color: #1d1d1f; }
.entrando .logo { font-size: 30px; font-weight: 800; }
.entrando .punto { width: 34px; height: 34px; border: 3px solid #ddd; border-top-color: #FF0000; border-radius: 50%;
  animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .barra-entrada { padding: 12px 16px; }
  .volver-web { padding: 7px 12px; font-size: .86rem; }
  main.entrada { align-items: flex-start; padding-top: 24px; }
  .form-container.tarjeta-entrada { padding: 28px 20px 22px; border-radius: 18px; }
}
.error-entrada { margin: 0 0 16px; padding: 11px 14px; border-radius: 12px; background: #fff1f0; color: #c4291c; font-size: .9rem; text-align: center; }

/* Páginas de alta (registro) */
.mostrar-claves { display: block; margin: -6px 0 16px auto; padding: 4px 8px; border: none; border-radius: 8px; background: transparent;
  color: #0071e3; font-family: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.mostrar-claves:hover { background: #eef4fd; }
.acepto { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; font-size: .86rem; line-height: 1.45; color: #424245; cursor: pointer; }
.acepto input { width: 17px; height: 17px; margin: 2px 0 0; flex: none; accent-color: #0071e3; }
.acepto a { color: #0071e3; }
.ayuda-campo { margin: -10px 0 16px; font-size: .8rem; color: #86868b; }
