/* ── AUTH PAGE ── */
#auth-page {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--brun);
  padding: 24px;
  position: relative;
}

#auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 20px,
    rgba(201,150,58,0.04) 20px, rgba(201,150,58,0.04) 40px
  );
  pointer-events: none;
}

#app-wrapper { display: flex; min-height: 100vh; }

.auth-box {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%; max-width: 440px;
  position: relative; z-index: 1;
  box-shadow: 0 32px 80px rgba(0,0,0,0.3);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo-icon {
  width: 52px; height: 52px;
  background: var(--or);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  color: var(--brun);
  margin: 0 auto 12px;
}

.auth-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: var(--brun);
}

.auth-logo-name span { color: var(--or); }

.auth-tabs {
  display: flex; gap: 4px;
  background: rgba(42,24,16,0.06);
  border-radius: 10px; padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1; padding: 9px;
  border-radius: 7px;
  border: none; background: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  color: var(--brun-soft);
}

.auth-tab.active {
  background: var(--white);
  color: var(--brun);
  box-shadow: var(--shadow-sm);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 600;
  color: var(--brun); margin-bottom: 6px;
}

.auth-sub {
  font-size: 13px; color: var(--brun-soft);
  margin-bottom: 20px;
}

.auth-error {
  font-size: 12px; color: var(--rouge);
  margin-top: -8px; margin-bottom: 12px;
  min-height: 16px;
}

.btn-auth {
  width: 100%;
  padding: 12px;
  background: var(--or);
  color: var(--brun);
  border: none;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.btn-auth:hover { background: var(--or-light); }
.btn-auth:disabled { opacity: 0.7; cursor: not-allowed; }

/* ── TOASTS ── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--brun);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 320px;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast-error { background: var(--rouge); }
.toast-success { background: var(--vert); }

/* ── SKELETONS ── */
.skeleton-list { padding: 8px 0; }

.skeleton-item {
  height: 48px;
  background: linear-gradient(90deg, rgba(42,24,16,0.06) 25%, rgba(42,24,16,0.1) 50%, rgba(42,24,16,0.06) 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  margin-bottom: 8px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
