/* ═══════════════════════════════════════════════════════════
   AUTH — auth.css
   ═══════════════════════════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Orbes décoratifs */
.auth-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.auth-orb--1 {
  width: 400px; height: 400px;
  background: var(--accent);
  opacity: 0.05;
  top: -100px; left: -100px;
}
.auth-orb--2 {
  width: 300px; height: 300px;
  background: #3B82F6;
  opacity: 0.04;
  bottom: -50px; right: -50px;
}

/* ── Carte ── */
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeUp 0.5s ease forwards;
}

/* ── Brand ── */
.auth-brand { text-align: center; }
.auth-brand__logo {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
  background: var(--accent-dim);
  width: 52px; height: 52px;
  border-radius: 50%;
  line-height: 52px;
  text-align: center;
}
.auth-brand__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.auth-brand__sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Onglets ── */
.auth-tabs {
  display: flex;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem;
  cursor: pointer;
  transition: all var(--transition);
}
.auth-tab.is-active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ── Message ── */
.auth-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
}
.auth-message.is-error {
  background: #EF444415;
  border: 1px solid #EF4444;
  color: #EF4444;
}
.auth-message.is-success {
  background: #10B98115;
  border: 1px solid #10B981;
  color: #10B981;
}

/* ── Formulaire ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-forgot {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition);
}
.form-forgot:hover { opacity: 0.7; }

.form-input-wrap {
  position: relative;
}

.form-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
}
.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}
.form-input-wrap .form-input {
  padding-right: 2.5rem;
}

.form-eye {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.5;
  transition: opacity var(--transition);
  padding: 0.25rem;
}
.form-eye:hover { opacity: 1; }

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
  gap: 0.5rem;
}

/* Spinner */
.auth-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #0A0A0A;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Séparateur ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── OAuth ── */
.auth-oauth {
  display: flex;
  gap: 0.75rem;
}

.oauth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: all var(--transition);
}
.oauth-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
