/* static/css/auth.css */

/* Se apoya en lo que tengas en base.html (Bootstrap puede estar o no).
   Esto no rompe nada, solo estiliza el login. */

:root{
  --bg: #0b1220;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --input: rgba(255,255,255,0.08);
  --focus: rgba(34,197,94,0.55);

  --btn: #22c55e;
  --btnText: #06110b;

  --danger: rgba(239,68,68,0.20);
  --warning: rgba(245,158,11,0.20);
  --info: rgba(59,130,246,0.20);
  --success: rgba(34,197,94,0.20);
}

.auth-shell{
  min-height: calc(100vh - 2rem);
  padding: 1rem;
  display: grid;
  place-items: center;
  background: transparent;
}

.auth-wrap{
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 1rem;
}

.auth-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(10px);
}

.auth-brand{
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.auth-logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--btnText);
  background: linear-gradient(135deg, #22c55e, #86efac);
}

.auth-title{
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.05;
}

.auth-subtitle{
  font-size: 13px;
  color: var(--muted);
}

.auth-form{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.auth-label{
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.auth-input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--text);
  outline: none;
}
.auth-input:focus{
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
}

.auth-btn{
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  background: var(--btn);
  color: var(--btnText);
}
.auth-btn:disabled{
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-row{
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

.auth-link{
  color: rgba(134,239,172,0.95);
  text-decoration: none;
  font-size: 13px;
}
.auth-link:hover{
  text-decoration: underline;
}

.auth-flashes{
  display: grid;
  gap: 8px;
  margin: 10px 0 10px 0;
}

/* Alertas (sin Bootstrap) */
.auth-alert{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
}
.auth-alert-row{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}
.auth-alert-msg{ flex: 1; }
.auth-alert-close{
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.auth-alert-danger{ background: var(--danger); }
.auth-alert-warning{ background: var(--warning); }
.auth-alert-info{ background: var(--info); }
.auth-alert-success{ background: var(--success); }
.auth-noscript{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* Side panel */
.auth-side{
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(34,197,94,0.25), transparent),
    radial-gradient(900px 500px at 95% 70%, rgba(59,130,246,0.18), transparent);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  align-items: center;
}

.auth-side-inner{
  max-width: 720px;
}

.auth-kicker{
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  margin-bottom: 8px;
}

.auth-hero{
  color: var(--text);
  font-size: 30px;
  margin: 0 0 10px 0;
  font-weight: 900;
}

.auth-copy{
  color: var(--muted);
  margin: 0 0 14px 0;
  line-height: 1.45;
}

.auth-bullets{
  color: rgba(255,255,255,0.86);
  margin: 0 0 18px 18px;
}
.auth-bullets li{ margin: 6px 0; }

.auth-sign{
  margin-top: 18px;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
}
.auth-sign-2{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* Responsive */
@media (max-width: 980px){
  .auth-wrap{ grid-template-columns: 1fr; }
  .auth-side{ min-height: 260px; }
}
/* ====== FIX CONTRASTE (pegar al final de auth.css) ====== */

/* Fondo más oscuro solo en guest (login) */
body.guest{
  background: #0b1220 !important;
}

/* Que el contenedor no quede gris lavado */
.auth-shell{
  background: transparent !important;
}

/* Card de login más legible */
.auth-card{
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
}

/* Labels e inputs con más contraste */
.auth-label{
  color: rgba(255,255,255,0.82) !important;
}
.auth-input{
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}
.auth-input::placeholder{
  color: rgba(255,255,255,0.45) !important;
}

/* Panel derecho: más oscuro + overlay para texto blanco */
.auth-side{
  position: relative;
  background:
    radial-gradient(800px 500px at 15% 10%, rgba(34,197,94,0.35), transparent),
    radial-gradient(800px 500px at 95% 70%, rgba(59,130,246,0.28), transparent),
    linear-gradient(135deg, rgba(10,20,40,0.85), rgba(10,20,40,0.85)) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
}

/* Texto del panel derecho */
.auth-kicker{ color: rgba(255,255,255,0.78) !important; }
.auth-hero{ color: rgba(255,255,255,0.96) !important; }
.auth-copy{ color: rgba(255,255,255,0.78) !important; }
.auth-bullets{ color: rgba(255,255,255,0.85) !important; }
.auth-sign{ color: rgba(255,255,255,0.70) !important; }
.auth-sign-2{ color: rgba(255,255,255,0.55) !important; }

/* Link más visible */
.auth-link{
  color: rgba(134,239,172,1) !important;
}

/* Botón un toque más “pro” */
.auth-btn{
  box-shadow: 0 10px 30px rgba(34,197,94,0.18) !important;
}
/* Password + eye toggle */
.auth-password-wrap{
  position: relative;
  display: block;
}

.auth-password-wrap .auth-input{
  padding-right: 44px; /* espacio para el botón */
}

.auth-eye{
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}

.auth-eye:hover{
  background: rgba(255,255,255,0.10);
}

.auth-eye.is-on{
  border-color: rgba(34,197,94,0.55);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.14);
}

.auth-eye:disabled{
  opacity: 0.55;
  cursor: not-allowed;
}
/* ===== Plan y módulos (login) ===== */
.auth-plan{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: grid;
  gap: 8px;
}
.auth-plan-title{
  font-size: 12px;
  color: rgba(255,255,255,0.70);
  letter-spacing: .2px;
}
.auth-plan-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Botoncitos livianos (no compiten con “Ingresar”) */
.auth-btn-lite{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.auth-btn-lite:hover{
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
}
.auth-btn-upgrade{
  border-color: rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.14);
}

/* ===== Password + ojo ===== */
.auth-password-wrap{
  position: relative;
}
.auth-password-wrap .auth-input{
  padding-right: 44px;
}
.auth-eye{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.auth-eye:hover{ background: rgba(255,255,255,0.10); }
.auth-eye.is-on{ border-color: rgba(34,197,94,0.45); }
/* Chips del panel derecho (sin “feature list”) */
.auth-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 14px 0 10px 0;
}
.auth-chip{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}
.auth-hint{
  margin: 6px 0 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.70);
}

