/* Estilos de login.php e index.php (dashboard) — reutiliza las variables
   de color y tipografías definidas en style.css. */

body.auth-body, body.dash-body {
  overflow-y: auto;
  min-height: 100vh;
  display: block;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124,58,237,.12), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(0,212,255,.10), transparent 55%),
    #020212;
}

/* ── LOGIN ───────────────────────────────────────── */
.auth-body { display: flex; align-items: center; justify-content: center; padding: 24px; }

.auth-card {
  width: 100%; max-width: 380px;
  background: var(--glass);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border); border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 0 50px rgba(0,212,255,.07), 0 30px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
}

.auth-title { font-size: 22px; letter-spacing: 6px; text-align: center; }
.auth-sub { text-align: center; margin-top: 6px; margin-bottom: 22px; }

.auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.auth-tab {
  flex: 1; padding: 9px 4px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; color: var(--dim);
  font-family: 'Orbitron', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  cursor: pointer; transition: all .2s;
}
.auth-tab:hover { background: rgba(255,255,255,.08); }
.auth-tab-active {
  background: rgba(0,212,255,.16); border-color: var(--c1); color: var(--c1);
  box-shadow: 0 0 12px rgba(0,212,255,.25);
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form.hidden { display: none; }

.auth-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--dim); text-transform: uppercase;
}
.auth-form input {
  font-family: 'Exo 2', sans-serif;
  padding: 11px 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.auth-form input:focus {
  border-color: var(--c1);
  box-shadow: 0 0 0 3px rgba(0,212,255,.15);
}

.auth-submit {
  margin-top: 4px; padding: 12px;
  font-size: 10px !important;
  background: rgba(0,212,255,.14) !important;
  border-color: rgba(0,212,255,.4) !important;
}
.auth-submit:hover { background: rgba(0,212,255,.28) !important; }

.auth-error {
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3);
  color: #f87171; font-size: 12px; padding: 10px 12px;
  border-radius: 9px; margin-bottom: 16px;
}
.hidden { display: none !important; }

/* ── DASHBOARD ───────────────────────────────────── */
.dash-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  max-width: 980px; margin: 0 auto; padding: 36px 24px 10px;
}
.dash-title { font-size: clamp(18px, 3.5vw, 28px); letter-spacing: 8px; text-align: left; filter: drop-shadow(0 0 18px rgba(0,212,255,.5)); }
.dash-sub { text-align: left; margin-top: 4px; }

.dash-user { display: flex; align-items: center; gap: 12px; }
.dash-username {
  font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 1px; color: var(--dim);
}
.dash-logout { padding: 8px 16px; font-size: 9px !important; text-decoration: none; }

.dash-grid {
  max-width: 980px; margin: 24px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.dash-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 20px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--link-border, var(--border));
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.dash-card:hover, .dash-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.4), 0 0 24px var(--link-glow, rgba(0,212,255,.15));
}
.dash-card-icon { font-size: 26px; }
.dash-card-title {
  font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--link-fg, var(--c1));
}
.dash-card-desc { font-size: 11.5px; color: var(--dim); line-height: 1.5; }

.dash-card-cyan   { --link-fg: #00d4ff; --link-border: rgba(0,212,255,.3);  --link-glow: rgba(0,212,255,.2); }
.dash-card-green  { --link-fg: #00ff88; --link-border: rgba(0,255,136,.3); --link-glow: rgba(0,255,136,.2); }
.dash-card-pink   { --link-fg: #ff3366; --link-border: rgba(255,51,102,.28); --link-glow: rgba(255,51,102,.2); }
.dash-card-yellow { --link-fg: #ffdd00; --link-border: rgba(255,221,0,.28); --link-glow: rgba(255,221,0,.2); }
.dash-card-purple { --link-fg: #a855f7; --link-border: rgba(168,85,247,.3); --link-glow: rgba(168,85,247,.2); }
.dash-card-dim    { --link-fg: #00d4ff; --link-border: rgba(0,212,255,.18); --link-glow: rgba(0,212,255,.12); }

@media (max-width: 520px) {
  .dash-header { padding: 24px 16px 4px; }
  .dash-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
  .dash-card { padding: 16px 14px; }
}
