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

.auth-body {
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  background: #0C1117;
}

/* ── Layout split ──────────────────────────────────────────────── */

.auth-split {
  min-height: 100vh;
  display: flex;
}

/* Panel oscuro - igual que el sidebar del back-end */
.auth-panel-dark {
  width: 360px;
  flex-shrink: 0;
  min-height: 100vh;
  background: #0C1117;
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem 2rem;
}

.auth-brand-top {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

/* Logo en blanco sobre fondo oscuro */
.auth-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.auth-logo svg path { fill: #e2e8f0; }
.auth-logo-img { height: 20px; max-width: 135px; object-fit: contain; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; pointer-events: none; }

.auth-logo-badge {
  font-size: .6rem;
  font-weight: 700;
  color: #3f5060;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: .18rem .5rem;
  border-radius: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.auth-brand-text {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.auth-brand-headline {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.auth-brand-sub {
  font-size: .8rem;
  font-weight: 400;
  color: #3f5060;
  line-height: 1.55;
}

/* Indicador de estado al pie del panel */
.auth-brand-footer {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.auth-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  outline: 2px solid rgba(34,197,94,.18);
  outline-offset: 1.5px;
}

.auth-brand-status {
  font-size: .7rem;
  font-weight: 500;
  color: #3f5060;
}

/* Panel claro - igual que el area de contenido del back-end */
.auth-panel-light {
  flex: 1;
  min-height: 100vh;
  background: #fafbfd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
}

.auth-form-box {
  width: 100%;
  max-width: 380px;
}

/* ── Textos ────────────────────────────────────────────────────── */

.auth-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
  letter-spacing: -.025em;
}

.auth-hint {
  font-size: .85rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

/* ── Alertas ───────────────────────────────────────────────────── */

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  padding: .7rem .9rem;
  font-size: .82rem;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.auth-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: 8px;
  padding: .8rem 1rem;
  font-size: .85rem;
  line-height: 1.55;
}

/* ── Formulario ────────────────────────────────────────────────── */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.auth-field label {
  font-size: .77rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: .01em;
}

.auth-field input {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: .6rem .85rem;
  font-size: .9rem;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  transition: border-color .15s;
  outline: none;
}

.auth-field input:focus {
  border-color: #2563eb;
}

.auth-btn {
  margin-top: .5rem;
  background: #0C1117;
  color: #f1f5f9;
  border: none;
  border-radius: 8px;
  padding: .7rem 1.2rem;
  font-size: .88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -.01em;
  transition: background .15s, transform .1s;
  width: 100%;
}
.auth-btn:hover  { background: #1e293b; }
.auth-btn:active { transform: scale(.98); }

/* ── Links ─────────────────────────────────────────────────────── */

.auth-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: .8rem;
}

.auth-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color .15s;
}
.auth-links a:hover { color: #0f172a; }

/* ── Mobile ────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .auth-split { flex-direction: column; }

  .auth-panel-dark {
    width: 100%;
    min-height: auto;
    padding: 1.25rem 1.25rem;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
  }
  .auth-brand-top { flex-direction: row; align-items: center; gap: .75rem; }
  .auth-brand-text { display: none; }
  .auth-brand-footer { display: none; }

  .auth-panel-light {
    min-height: auto;
    flex: none;
    padding: 2rem 1.25rem;
    align-items: flex-start;
  }
  .auth-form-box { max-width: 100%; }
}
