/* =========================================================
   Centro Educativo Victoria - Pantalla de acceso / login (acceso/index.html)
   ========================================================= */

:root {
  --color-primary: #2f5c8a;
  --color-danger: #ff8a8a;
  --color-white: #ffffff;
  --font-main: 'Sora', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-main);
}

/* ---------- Pantalla completa con imagen de fondo ---------- */
.access-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  background-image: url('../media/sesion.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0b1626; /* color de respaldo mientras carga la imagen */
}

/* Capa oscura semitransparente sobre la imagen para dar legibilidad */
.access-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 22, 38, 0.6);
  z-index: 0;
}

/* ---------- Header superior (solo iconos sociales a la derecha) ---------- */
.access-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
}

/* Flecha para regresar al sitio público, arriba a la izquierda */
.access-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--color-white);
  flex: 0 0 auto;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.access-back:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  transform: translateX(-2px);
}

.access-back svg {
  width: 18px;
  height: 18px;
}

.access-social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--color-white);
  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

/* ---------- Bloque central (login) ---------- */
.access-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.access-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.access-logo {
  width: 220px;
  max-width: 70%;
  height: auto;
  margin-bottom: 40px;
}

.access-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Campo con icono dentro (usuario / contraseña) */
.access-field {
  position: relative;
  width: 100%;
}

.access-field-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-white);
  opacity: 0.85;
  pointer-events: none;
}

.access-input {
  width: 100%;
  padding: 15px 20px 15px 52px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: background 0.15s ease;
}

.access-input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.access-input:focus {
  background: rgba(255, 255, 255, 0.28);
}

.access-error {
  background: rgba(255, 138, 138, 0.18);
  color: var(--color-danger);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
  border-radius: 12px;
}

/* Botón principal de ingreso */
.access-btn {
  width: 100%;
  padding: 15px 20px;
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.access-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(47, 92, 138, 0.45);
}

/* Enlaces de ayuda debajo del botón */
.access-links {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.access-links a {
  color: var(--color-white);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.15s ease;
}

.access-links a:hover {
  color: var(--color-primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .access-header {
    padding: 20px;
  }

  .access-back {
    width: 36px;
    height: 36px;
  }

  .access-logo {
    width: 180px;
    margin-bottom: 32px;
  }

  .access-card {
    max-width: 100%;
  }

  .access-input,
  .access-btn {
    padding-left: 18px;
    padding-right: 18px;
  }

  .access-input {
    padding-left: 48px;
  }
}
