/* =============================================================
   LIMITED OS · auth.css
   Pantallas de acceso: login, registro y cambio de contraseña.
   ============================================================= */

body.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: auto;
  background:
    radial-gradient(600px 400px at 20% 0%, rgba(255, 201, 0, 0.05), transparent),
    radial-gradient(circle at 1px 1px, #15151b 1px, transparent 0) 0 0 / 24px 24px,
    var(--bg-main);
}

.auth-card {
  width: min(400px, 92vw);
  background: var(--bg-sidebar);
  border: 1px solid var(--border-internal);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}
.auth-logo .logo-os {
  background: var(--accent-yellow);
  color: var(--on-accent);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 16px;
}

.auth-card h1 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-divider);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.15s ease;
}
.auth-field input:focus { border-color: var(--accent-yellow); }

/* Código de 6 dígitos */
.auth-field input.code-input {
  letter-spacing: 10px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.auth-btn {
  width: 100%;
  background: var(--accent-yellow);
  color: var(--on-accent);
  border: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
  margin-top: 6px;
  transition: background-color 0.15s ease;
}
.auth-btn:hover { background: var(--accent-yellow-hover); }
.auth-btn:disabled { opacity: 0.6; cursor: wait; }

.auth-error {
  display: none;
  background: rgba(255, 71, 71, 0.1);
  border: 1px solid rgba(255, 71, 71, 0.35);
  color: #ff6b6b;
  font-size: 12.5px;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  line-height: 1.4;
}
.auth-error.visible { display: block; }

.auth-ok {
  display: none;
  background: rgba(4, 206, 93, 0.1);
  border: 1px solid rgba(4, 206, 93, 0.35);
  color: #2ee787;
  font-size: 12.5px;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  line-height: 1.4;
}
.auth-ok.visible { display: block; }

.auth-links {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
}
.auth-links a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-divider);
}
.auth-links a:hover { color: var(--accent-yellow); border-color: var(--accent-yellow); }

.auth-footer {
  margin-top: 26px;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
}

/* Pasos del registro */
.auth-step { display: none; }
.auth-step.active { display: block; }
