/* ═══════════════════════════════════════════════════════════
   ULTRAWIKI — login.css
═══════════════════════════════════════════════════════════ */

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

/* ── Card ───────────────────────────────────────────────── */
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 2rem;
  position: relative;
}

/* Coin décoratif */
.login-card::before,
.login-card::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--red);
  border-style: solid;
}
.login-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.login-card::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ── Logo ───────────────────────────────────────────────── */
.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
  text-transform: uppercase;
}

.login-logo-bar {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin: 0.5rem auto 0;
}

/* ── Tabs ───────────────────────────────────────────────── */
.login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.login-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.login-tab:hover { color: var(--text); }
.login-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ── Formulaire ─────────────────────────────────────────── */
.login-form {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}
.login-form.active { display: flex; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.form-group input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.form-group input::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus { border-color: var(--red); }

/* ── Erreur ─────────────────────────────────────────────── */
.form-error {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--red);
  min-height: 1.2em;
  letter-spacing: 0.05em;
}

/* ── Bouton submit ──────────────────────────────────────── */
.btn-submit {
  background: var(--red);
  border: none;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.5rem;
  width: 100%;
}

.btn-submit:hover  { background: #c00; }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Dropdown auth (header) ─────────────────────────────── */
#auth-dropdown {
  position: absolute;
  z-index: 1000;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  min-width: 160px;
  padding: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.auth-dd-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.4rem;
}

.auth-dd-name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--text);
}

.auth-dd-badge {
  background: var(--red);
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.35rem;
  text-transform: uppercase;
}

#auth-dropdown button {
  width: 100%;
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.6rem;
  text-align: left;
  cursor: pointer;
  text-transform: uppercase;
  transition: color 0.2s;
}
#auth-dropdown button:hover { color: var(--red); }

/* ── Bouton account connecté ────────────────────────────── */
.btn-account.logged-in {
  color: var(--red);
  font-family: 'Share Tech Mono', monospace;
}
