/* LunexPOS — auth blanco (login / demo / recuperar) */

:root {
  --af-blue: #1D4ED8;
  --af-blue-b: #2563EB;
  --af-text: #0F172A;
  --af-muted: #64748B;
  --af-border: #E2E8F0;
  --af-surface: #F8FAFC;
}

@keyframes af-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-shell-override {
  min-height: 100vh !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  background: #ffffff !important;
  padding: 0 !important;
}
.auth-wrap-override {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--af-border);
  background: #ffffff;
}
.auth-topbar-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--af-muted);
  text-decoration: none;
  white-space: nowrap;
}
.auth-topbar-link:hover { color: var(--af-blue-b); }

.auth-logo {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.18s ease;
}
.auth-logo:hover { opacity: 0.9; }
.auth-logo .lunexpos-logo {
  --lunexpos-logo-height: 44px;
  --lunexpos-logo-max-width: 200px;
  height: 44px;
}

.auth-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  width: min(980px, 94vw);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  animation: af-fade-up 0.45s ease both;
}

.auth-copy {
  padding-right: 1.5rem;
}
.auth-panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--af-blue);
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  margin-bottom: 1rem;
}
.auth-panel-headline {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  color: var(--af-text);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 16ch;
}
.auth-panel-headline .auth-shine { color: var(--af-blue-b); }
.auth-panel-sub {
  font-size: 0.98rem;
  color: var(--af-muted);
  margin: 0 0 1.75rem;
  max-width: 38ch;
  line-height: 1.65;
}

.auth-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.auth-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--af-text);
  font-size: 0.9rem;
}
.auth-feature-list .af-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: var(--af-blue-b);
  flex-shrink: 0;
}
.auth-feature-list strong {
  display: block;
  font-weight: 650;
  color: var(--af-text);
  margin-bottom: 0.08rem;
}
.auth-feature-list span {
  font-size: 0.8rem;
  color: var(--af-muted);
  line-height: 1.4;
}

.auth-form-wrap {
  display: flex;
  justify-content: center;
}
.auth-form-card {
  width: min(420px, 100%);
  background: #ffffff;
  border: 1px solid var(--af-border);
  border-radius: 18px;
  padding: 1.85rem 1.65rem 1.6rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.auth-form-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--af-blue);
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 999px;
  padding: 0.22rem 0.75rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.auth-form-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  color: var(--af-text);
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}
.auth-form-subtitle {
  font-size: 0.9rem;
  color: var(--af-muted);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.af-field { margin-bottom: 1.05rem; }
.af-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}
.af-label i { color: #94A3B8; font-size: 0.85rem; }

.af-input {
  width: 100%;
  border: 1.5px solid #E2E8F0;
  border-radius: 11px;
  padding: 0.78rem 1rem;
  font-size: 0.94rem;
  color: var(--af-text);
  background: #ffffff;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}
.af-input:hover { border-color: #CBD5E1; }
.af-input:focus {
  border-color: var(--af-blue-b);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.af-input.is-invalid {
  border-color: #EF4444;
  background: #FFF5F5;
}
.af-error {
  font-size: 0.78rem;
  color: #EF4444;
  margin-top: 0.28rem;
}

.af-input-wrap {
  display: flex;
  align-items: center;
  position: relative;
}
.af-input-wrap .af-input { padding-right: 3rem; }
.af-eye-btn {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1rem;
  line-height: 1;
}
.af-eye-btn:hover { color: var(--af-blue-b); }

.af-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.af-remember {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.15rem 0 1.25rem;
  font-size: 0.84rem;
  color: #475569;
}
.af-remember input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--af-blue-b);
  cursor: pointer;
}
.af-remember a {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--af-blue-b);
  text-decoration: none;
}
.af-remember a:hover { text-decoration: underline; }

.af-submit {
  width: 100%;
  background: var(--af-blue-b);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.5rem;
  font-size: 0.97rem;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}
.af-submit:hover {
  background: var(--af-blue);
  transform: translateY(-1px);
}
.af-submit:active { transform: none; }

.af-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.25rem 0 0.95rem;
  color: #94A3B8;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.af-divider::before,
.af-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--af-border);
}

.af-register-link {
  text-align: center;
  font-size: 0.88rem;
  color: var(--af-muted);
  margin: 0.25rem 0 0;
}
.af-register-link a {
  color: var(--af-blue-b);
  font-weight: 600;
  text-decoration: none;
}
.af-register-link a:hover { text-decoration: underline; }

.af-hint-box {
  background: #F8FAFC;
  border: 1px solid var(--af-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.83rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.af-pwa-install {
  display: flex;
  justify-content: center;
  margin-top: 1.1rem;
}
.af-pwa-install .btn {
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  color: #475569;
  border-color: #CBD5E1;
}
.af-pwa-install .btn:hover {
  background: var(--af-surface);
  color: var(--af-text);
}

.auth-footer {
  text-align: center;
  padding: 1rem 1.5rem 1.5rem;
  font-size: 0.75rem;
  color: #94A3B8;
  background: #ffffff;
}

/* Compat: ocultar restos del layout anterior */
.auth-panel-left,
.auth-panel-right,
.auth-mobile-logo,
.auth-left-shot,
.auth-panel-footer,
.auth-left-brand { display: none !important; }

@media (max-width: 860px) {
  .auth-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.75rem 0 2.25rem;
  }
  .auth-copy {
    padding-right: 0;
    text-align: center;
  }
  .auth-panel-headline,
  .auth-panel-sub { margin-left: auto; margin-right: auto; }
  .auth-feature-list {
    text-align: left;
    max-width: 420px;
    margin: 0 auto;
  }
  .auth-form-wrap { justify-content: center; }
}

@media (max-width: 480px) {
  .af-row { grid-template-columns: 1fr; }
  .auth-form-card { padding: 1.5rem 1.2rem 1.35rem; border-radius: 14px; }
  .auth-topbar { padding: 0.85rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-main { animation: none !important; }
}
