/* AR App - Plantilla de inicio de sesión (0.9.14): login, crear cuenta, invitación y «Olvidé mi contraseña».
   body.auth-vidrio · body.auth-dividida · body.auth-app. La foto llega en la variable --foto. */
@font-face { font-family: 'Neutra2Text'; src: url(/assets/fonts/neutra-400.otf) format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Neutra2Text'; src: url(/assets/fonts/neutra-700.otf) format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Neutra2Text'; src: url(/assets/fonts/neutra-900.otf) format('opentype'); font-weight: 900; font-display: swap; }

body.auth { --bg: #07080a; --bg-2: #0e1014; --surface: #0f1115; --surface-2: #1a1d23; --border: #262a31; min-height: 100vh; }
.auth .contenido { max-width: 460px; padding: 0 16px; margin: 0 auto; flex: none; width: 100%; }
.auth .card.angosta { margin: 0 auto; max-width: none; border-radius: 22px; padding: 28px 26px; }
.auth .card h1 { font-weight: 900; font-size: 1.6rem; letter-spacing: -.01em; }
.auth input, .auth select { border-radius: 12px; padding: .85rem .95rem; background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.14); }
.auth .btn { border-radius: 12px; padding: .9rem 1.2rem; font-weight: 800; background: linear-gradient(180deg, #3b82f6, #2c72d0); box-shadow: 0 10px 24px rgba(44,114,208,.35); }
.auth .btn-sec { background: rgba(255,255,255,.08); box-shadow: none; }
.auth-marca { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-decoration: none; color: #fff; margin-bottom: 18px; text-align: center; }
.auth-marca img { border-radius: 20px; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 12px 30px rgba(0,0,0,.45); display: block; }
.auth-marca b { font-size: 1.35rem; font-weight: 900; }
.auth-marca span { color: rgba(255,255,255,.75); font-size: .88rem; margin-top: -.3rem; }
.auth-pie { color: rgba(255,255,255,.55); }
.auth-tag { display: inline-block; background: rgba(44,114,208,.28); border: 1px solid rgba(90,155,240,.55); color: #cfe0fb; font-size: .68rem; letter-spacing: .14em; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; margin-bottom: .8rem; }

/* ---------- Foto de fondo con tarjeta de vidrio ---------- */
body.auth-vidrio { background: #07080a var(--foto) center / cover fixed no-repeat; }
.auth-vidrio .auth-marco { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 0 20px;
  background: radial-gradient(900px 650px at 50% 42%, rgba(7,8,10,.35), rgba(7,8,10,.86)); }
.auth-vidrio .auth-lado { width: 100%; }
.auth-vidrio .card.angosta { background: rgba(15,17,22,.62); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.auth-vidrio .auth-pie { position: relative; margin-top: -48px; }

/* ---------- Pantalla dividida ---------- */
.auth-dividida .auth-marco { display: flex; min-height: 100vh; }
.auth-dividida .auth-foto { flex: 1.3; position: relative; background: #07080a var(--foto) center / cover no-repeat; }
.auth-dividida .auth-foto::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,8,10,.05), rgba(7,8,10,.35) 60%, #07080a), linear-gradient(0deg, rgba(7,8,10,.85), transparent 45%); }
.auth-lema { position: absolute; left: 48px; right: 48px; bottom: 48px; z-index: 2; max-width: 540px; }
.auth-lema b { display: block; font-size: 2.1rem; font-weight: 900; line-height: 1.15; color: #fff; }
.auth-dividida .auth-lado { width: 480px; flex: none; display: flex; flex-direction: column; justify-content: center; padding: 40px 20px; }
.auth-dividida .auth-marca { align-items: flex-start; text-align: left; padding: 0 16px; max-width: 460px; margin: 0 auto 18px; width: 100%; }
.auth-dividida .card.angosta { background: transparent; border: 0; padding: 8px 0; box-shadow: none; }
.auth-dividida .auth-pie { position: fixed; right: 0; bottom: 0; width: 480px; }
@media (max-width: 860px) {
  .auth-dividida .auth-marco { flex-direction: column; }
  .auth-dividida .auth-foto { flex: none; height: 260px; }
  .auth-lema { left: 20px; right: 20px; bottom: 20px; }
  .auth-lema b { font-size: 1.35rem; }
  .auth-dividida .auth-lado { width: auto; padding: 22px 4px 10px; }
  .auth-dividida .auth-marca { display: none; }
  .auth-dividida .auth-pie { position: static; width: auto; }
}

/* ---------- Estilo app ---------- */
.auth-app .auth-marco { width: 100%; max-width: 1120px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.auth-app .auth-foto { height: 44vh; min-height: 270px; position: relative; background: #07080a var(--foto) center 60% / cover no-repeat; border-radius: 0 0 34px 34px; overflow: hidden; }
.auth-app .auth-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,8,10,.92), rgba(7,8,10,.1) 65%); }
.auth-app .auth-lema { display: none; }
.auth-logo-foto { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .6rem; color: #fff; }
.auth-logo-foto img { border-radius: 22px; border: 2px solid rgba(255,255,255,.22); box-shadow: 0 10px 30px rgba(0,0,0,.5); display: block; }
.auth-logo-foto b { font-size: 1.4rem; font-weight: 900; }
.auth-app .auth-lado { padding: 18px 0 10px; }
.auth-app .card.angosta { background: transparent; border: 0; box-shadow: none; padding: 8px 6px; }
.auth-app .card h1 { text-align: center; }
@media (min-width: 900px) {
  .auth-app .auth-marco { flex-direction: row; align-items: center; gap: 40px; padding: 40px; }
  .auth-app .auth-foto { flex: 1; height: 640px; border-radius: 30px; }
  .auth-app .auth-lado { flex: none; width: 440px; }
}
@media (max-width: 860px), (hover: none) { body.auth-vidrio { background-attachment: scroll; } }
