/* Pantallas de acceso (login, recuperar acceso, nueva contraseña).
   Misma estética que la landing de cabocorrientes.org: fondo azul noche, foto del edificio,
   Montserrat + Inter, vidrio esmerilado y acento cian. */

:root {
  --bg: #060f1a;
  --surface: rgba(255, 255, 255, .055);
  --surface-line: rgba(255, 255, 255, .12);
  --ink: #eaf3fa;
  --muted: #8fa9bd;
  --cyan: #00c2ff;
  --cyan-deep: #0084c7;
  --sun: #ffb937;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body.acceso {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---- Fondo: la foto de la landing, apagada, con el mismo velo ---- */
.acceso-fondo {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(.45) brightness(.52) contrast(1.08);
}
.acceso-velo {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 70% at 24% 46%, rgba(6, 15, 26, .18) 0%, rgba(6, 15, 26, .78) 100%),
    linear-gradient(180deg, rgba(6, 15, 26, .55) 0%, rgba(0, 80, 130, .22) 55%, rgba(6, 15, 26, .92) 100%);
}

/* ---- Marca (la píldora de vidrio de la landing) ---- */
.acceso-top {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 14px 16px 0;
}
.acceso-marca {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 7px 18px 7px 7px;
  border-radius: 999px;
  background: rgba(8, 20, 34, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  transition: border-color .18s ease;
}
.acceso-marca:hover { border-color: rgba(0, 194, 255, .45); color: #fff; }
.acceso-marca img { width: 36px; height: 36px; border-radius: 50%; background: #fff; padding: 2px; }

/* ---- Cuerpo: texto a la izquierda, formulario a la derecha ---- */
.acceso-main {
  flex: 1;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 48px 20px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: center;
  gap: 56px;
}

.acceso-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: #bfe7fb;
  border: 1px solid rgba(0, 194, 255, .35);
  background: rgba(0, 194, 255, .1);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.acceso-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}
.acceso-intro h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: .98;
  letter-spacing: -.025em;
  max-width: 12ch;
  background: linear-gradient(100deg, #ffffff 30%, #9adcff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Tarjeta del formulario ---- */
.acceso-form { width: 100%; min-width: 0; }
.acceso-card {
  background: rgba(8, 20, 34, .58);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  padding: 34px 30px 30px;
}
.acceso-card h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: #fff;
}
.acceso-sub { margin-top: 6px; color: var(--muted); font-size: 14.5px; }

.acceso-aviso {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.acceso-aviso a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.acceso-aviso.error { color: #ffc9c9; background: rgba(255, 92, 92, .1); border: 1px solid rgba(255, 110, 110, .38); }
.acceso-aviso.ok { color: #bdf3d6; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .38); }

.acceso-campos { margin-top: 24px; display: grid; gap: 16px; }
.acceso-campo label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #c6d9e6;
}
.acceso-input { position: relative; }
.acceso-input input {
  width: 100%;
  font: inherit;
  font-size: 16px; /* 16px: iOS no hace zoom al enfocar */
  color: var(--ink);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 13px 15px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.acceso-input input::placeholder { color: rgba(143, 169, 189, .7); }
.acceso-input input:hover { border-color: rgba(255, 255, 255, .24); }
.acceso-input input:focus {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 3px rgba(0, 194, 255, .22);
}
/* El autocompletado de Chrome pinta el campo de blanco/amarillo: lo dejamos oscuro */
.acceso-input input:-webkit-autofill,
.acceso-input input:-webkit-autofill:hover,
.acceso-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #102335 inset;
  transition: background-color 9999s ease-out 0s;
}
.acceso-input.con-ojo input { padding-right: 50px; }
.acceso-ojo {
  position: absolute; top: 50%; right: 6px;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 0; border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.acceso-ojo:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.acceso-ojo:focus-visible { outline: 2px solid var(--cyan); outline-offset: 0; }
.acceso-ojo svg { width: 19px; height: 19px; }
.acceso-ojo .ojo-cerrado { display: none; }
.acceso-ojo[aria-pressed="true"] .ojo-abierto { display: none; }
.acceso-ojo[aria-pressed="true"] .ojo-cerrado { display: block; }

.acceso-links { margin-top: 14px; display: flex; justify-content: flex-end; }
.acceso-links a, .acceso-volver {
  color: #9adcff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.acceso-links a:hover, .acceso-volver:hover { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.acceso-btn {
  margin-top: 22px;
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: #04202f;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  border: 0;
  border-radius: 14px;
  padding: 15px 28px;
  cursor: pointer;
  box-shadow: 0 10px 34px rgba(0, 194, 255, .32);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.acceso-btn svg { width: 18px; height: 18px; transition: transform .18s ease; }
.acceso-btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 38px rgba(0, 194, 255, .42); }
.acceso-btn:hover svg { transform: translateX(3px); }
.acceso-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.acceso-btn[aria-busy="true"] { filter: saturate(.6) brightness(.9); cursor: progress; transform: none; }

.acceso-pie-card {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--surface-line);
  text-align: center;
}

/* ---- Pie ---- */
.acceso-footer {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 0 20px 26px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}
.acceso-footer .oficial { color: #c6d9e6; font-weight: 600; }
.acceso-footer small { display: block; margin-top: 6px; opacity: .6; font-size: 11.5px; }

/* El sello flotante de reCAPTCHA se oculta; en la tarjeta va la leyenda equivalente (lo permite Google) */
.grecaptcha-badge { visibility: hidden; }
.acceso-recaptcha {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  opacity: .85;
}
.acceso-recaptcha a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.acceso-recaptcha a:hover { color: var(--ink); }

/* ---- Animación de entrada (como el hero de la landing) ---- */
.acceso-badge, .acceso-intro h1, .acceso-card { animation: acceso-sube 1s cubic-bezier(.2, .7, .2, 1) both; }
.acceso-intro h1 { animation-delay: .08s; }
.acceso-card { animation-delay: .16s; }
@keyframes acceso-sube { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .acceso-badge, .acceso-intro h1, .acceso-card { animation: none; }
  .acceso-btn, .acceso-btn svg { transition: none; }
}

/* ---- Celulares y tablets angostas: una sola columna ---- */
@media (max-width: 860px) {
  .acceso-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 34px 16px 32px;
    align-content: start;
    justify-items: center;
  }
  .acceso-intro { width: 100%; max-width: 440px; }
  .acceso-intro h1 { font-size: clamp(30px, 8.6vw, 44px); }
  .acceso-badge { margin-bottom: 16px; }
  .acceso-form { max-width: 440px; }
}
@media (max-width: 420px) {
  .acceso-card { padding: 26px 20px 22px; border-radius: 18px; }
  .acceso-marca span { font-size: 13px; }
}
