/* ── Layout ─────────────────────────────────────────────── */
.auth-main {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-logo {
  font-size: 2.5rem;
  text-align: center;
}
.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin: 0;
}
.auth-sub {
  text-align: center;
  font-size: 0.9rem;
  margin: 0;
}

/* ── Tabs ────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem;
  cursor: pointer;
  transition: all 0.15s;
}
.auth-tab.active {
  background: rgba(245,197,24,0.12);
  color: var(--accent);
}

/* ── Form ────────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.auth-field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: border-color 0.15s;
}
.auth-field input:focus {
  border-color: rgba(245,197,24,0.5);
}
.auth-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.auth-btn {
  width: 100%;
  padding: 0.7rem;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.auth-error {
  color: var(--red);
  font-size: 0.82rem;
  min-height: 1.2em;
  margin: 0;
  text-align: center;
}

/* ── Link button (¿olvidaste contraseña?, volver al login) ── */
.auth-link-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.auth-link-btn:hover { color: var(--accent); }

/* ── Success ─────────────────────────────────────────────── */
.auth-success {
  text-align: center;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.success-icon { font-size: 2.5rem; }
.auth-success p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* ── Nav username ────────────────────────────────────────── */
.nav-username {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-right: 0.5rem;
  text-decoration: none;
}
.nav-username:hover { text-decoration: underline; }
