/* public/css/auth-login.css */
:root{
  --al-teal: #06b6b4;
  --al-teal-dark: #039c9a;
  --al-bg: #f6f8fb;
  --al-text: #0f172a;
  --al-muted: #64748b;
  --al-border: #e6edf5;
  --al-card: #ffffff;
  --al-ring: rgba(6,182,180,.25);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
.al-body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--al-bg);
  color: var(--al-text);
}

.al-wrap{
  min-height: 100vh;
  display: flex;
}

/* ===== HERO desktop ===== */
.al-hero{
  display: none;
  width: 50%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--al-teal) 0%, var(--al-teal-dark) 100%);
}
@media (min-width: 1024px){
  .al-hero{ display: block; }
}

.al-hero-bg::before,
.al-hero-bg::after{
  content:"";
  position:absolute;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}
.al-hero-bg::before{ top:-7rem; left:-7rem; }
.al-hero-bg::after{ bottom:-8rem; right:-8rem; width: 30rem; height: 30rem; opacity: .10; }

.al-hero-content{
  position: relative;
  z-index: 1;
  padding: 3.5rem 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}

.al-hero-mark{
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255,255,255,.18);
}

.al-hero-title{
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 3rem;
  line-height: 1.05;
}
.al-hero-sub{
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 1.05rem;
  max-width: 520px;
}

.al-hero-photo{
  margin-top: 1rem;
  width: min(560px, 92%);
  border-radius: 26px;
  padding: 12px;
  background: rgba(255,255,255,.16);
}
.al-hero-photo-inner{
  width: 100%;
  height: 260px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.3), rgba(255,255,255,.06)),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,.10), transparent 55%);
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
}

/* ===== MAIN ===== */
.al-main{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1rem;
}
@media (min-width: 1024px){
  .al-main{ width: 50%; padding: 3rem 2rem; }
}

.al-card{
  width: 100%;
  max-width: 420px;
  background: var(--al-card);
  border: 1px solid var(--al-border);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
@media (min-width: 640px){
  .al-card{ padding: 2rem; }
}

/* Header */
.al-head{ text-align: center; }
@media (min-width: 1024px){
  .al-head{ text-align: left; }
}

.al-app-mark{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(6,182,180,.12);
  margin: 0 auto;
}
@media (min-width: 1024px){
  .al-app-mark{ margin: 0; }
}

.al-kicker{
  margin-top: .85rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--al-teal);
}

.al-title{
  margin: .5rem 0 0;
  color: var(--al-text);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
@media (min-width: 640px){
  .al-title{ font-size: 1.9rem; }
}
.al-desc{
  margin: .35rem 0 0;
  color: var(--al-muted);
  font-size: .95rem;
}

/* Alerts/errors */
.al-alert{
  margin-top: 1rem;
  border: 1px solid rgba(6,182,180,.22);
  background: rgba(6,182,180,.08);
  color: #0f766e;
  padding: .75rem .9rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: .92rem;
}

.al-error{
  margin-top: .55rem;
  color: #dc2626;
  font-size: .88rem;
  font-weight: 700;
}

/* Form */
.al-form{ margin-top: 1.2rem; }
.al-field{ margin-top: 1rem; }

.al-label{
  display: block;
  font-size: .9rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: .55rem;
}

.al-input-wrap{ position: relative; }

.al-input-ico{
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  padding-left: 14px;
  width: 40px;
}

/* Fake icons sin SVG (CSS only) */
.al-ico-mail::before,
.al-ico-lock::before{
  content:"";
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(6,182,180,.16);
  border: 1px solid rgba(6,182,180,.28);
}
.al-ico-mail::after{
  content:"";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 10px;
  height: 6px;
  transform: translateY(-50%) rotate(45deg);
  border-right: 2px solid rgba(6,182,180,.65);
  border-bottom: 2px solid rgba(6,182,180,.65);
}
.al-ico-lock::after{
  content:"";
  position: absolute;
  left: 20px;
  top: 45%;
  width: 10px;
  height: 8px;
  transform: translateY(-50%);
  border: 2px solid rgba(6,182,180,.65);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.al-input{
  width: 100%;
  border: 1px solid rgba(6,182,180,.18);
  border-radius: 999px;
  padding: 12px 14px 12px 44px;
  font-size: .98rem;
  outline: none;
  background: #fff;
  color: var(--al-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.al-input::placeholder{ color: #94a3b8; }
.al-input:focus{
  border-color: rgba(6,182,180,.45);
  box-shadow: 0 0 0 4px var(--al-ring);
}
.al-input--with-action{ padding-right: 46px; }

/* Eye button (no svg) */
.al-eye{
  position: absolute;
  inset: 0 0 0 auto;
  width: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.al-eye::before{
  content:"";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 2px solid #94a3b8;
  border-radius: 12px;
}
.al-eye::after{
  content:"";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  background: #94a3b8;
  border-radius: 999px;
}
.al-eye.is-on::after{
  background: var(--al-teal);
}
.al-eye:hover::before{ border-color: #64748b; }
.al-eye:hover::after{ background: #64748b; }

/* Remember / link row */
.al-row{
  margin-top: .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.al-remember{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .9rem;
  color: #475569;
  user-select: none;
}
.al-remember input{
  width: 16px;
  height: 16px;
  accent-color: var(--al-teal);
}

.al-link{
  color: var(--al-teal);
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
}
.al-link:hover{ text-decoration: underline; }
.al-link--bold{ font-weight: 900; }

/* Button */
.al-btn{
  margin-top: 1.1rem;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--al-teal);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  box-shadow: 0 12px 26px rgba(6,182,180,.30);
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
}
.al-btn:hover{
  background: var(--al-teal-dark);
  box-shadow: 0 14px 30px rgba(6,182,180,.33);
}
.al-btn:active{ transform: scale(.99); }

.al-btn-arrow{
  width: 18px;
  height: 18px;
  position: relative;
}
.al-btn-arrow::before{
  content:"";
  position:absolute;
  top: 50%;
  left: 2px;
  width: 12px;
  height: 2px;
  background: #fff;
  transform: translateY(-50%);
}
.al-btn-arrow::after{
  content:"";
  position:absolute;
  top: 50%;
  right: 2px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-50%) rotate(-45deg);
}

/* Footer */
.al-foot{
  margin-top: 1.1rem;
  text-align: center;
  font-size: .92rem;
  color: #64748b;
}
.al-foot a{ margin-left: .35rem; }

.al-divider{
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  justify-content: center;
}
.al-divider::before,
.al-divider::after{
  content:"";
  height: 1px;
  background: #e5e7eb;
  flex: 1;
}
.al-divider span{ white-space: nowrap; }

.al-social{
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.al-social-btn{
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.al-social-btn:hover{
  background: #f8fafc;
  border-color: #dbe5ef;
}

/* Mobile compact tweak */
@media (max-width: 420px){
  .al-card{ padding: 1.2rem; border-radius: 24px; }
  .al-title{ font-size: 1.45rem; }
  .al-input{ padding-top: 11px; padding-bottom: 11px; }
  .al-btn{ padding-top: 11px; padding-bottom: 11px; }
}



/* Icono FontAwesome dentro del input */
.al-input-wrap{
  position: relative;
}

.al-fa{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--al-teal);
  pointer-events: none; /* para que no estorbe el click */
}

/* deja espacio para el icono */
.al-input{
  padding-left: 44px; /* ajusta si quieres más/menos espacio */
}



/* Asegura padding para el icono izquierda */
.al-input{
  padding-left: 44px;
}

/* Botón ojo con FontAwesome */
.al-eye{
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  transition: background .15s ease, color .15s ease;
}
.al-eye:hover{
  background: rgba(2, 132, 199, 0.06); /* suave */
  color: #475569;
}
.al-eye:focus{
  outline: none;
  box-shadow: 0 0 0 4px var(--al-ring);
}

/* Icono dentro del botón */
.al-eye i{
  font-size: 16px;
}

/* (Opcional) estado cuando está mostrando */
.al-eye.is-on{
  color: var(--al-teal);
}

.al-pwa{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  margin-top:18px;
  padding:11px;
  border:1px solid #e3e8ee;
  border-radius:16px;
  background:#f8fafc;
}
.al-pwa[hidden]{display:none}
.al-pwa img{width:42px;height:42px;border-radius:12px;object-fit:cover;box-shadow:0 6px 16px rgba(15,23,42,.1)}
.al-pwa-copy{min-width:0}
.al-pwa-copy strong,.al-pwa-copy span{display:block}
.al-pwa-copy strong{color:#172033;font-size:12px;font-weight:900}
.al-pwa-copy span{margin-top:2px;color:#6b778c;font-size:10px;font-weight:600}
.al-pwa>button{padding:9px 12px;border:0;border-radius:999px;background:#111827;color:#fff;font-size:10px;font-weight:900;cursor:pointer}
.al-pwa>button:disabled{opacity:.55;cursor:wait}
.al-pwa-help{display:none;grid-column:1/-1;padding:10px;border-radius:11px;background:#e7faf7;color:#155e75;font-size:10px;line-height:1.55}
.al-pwa-help.is-visible{display:block}
@media(max-width:420px){.al-pwa{grid-template-columns:38px minmax(0,1fr) auto;gap:8px}.al-pwa img{width:38px;height:38px}.al-pwa>button{padding:8px 10px}}
