/* ==========================================================================
   Kairos — Sovereign Auth Gate (100% Dinia SSO)
   ========================================================================== */

.auth-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-base);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(161, 89, 166, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(0, 47, 167, 0.08) 0%, transparent 50%);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border-subtle);
  padding: 2.75rem 2.25rem;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: authFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.auth-logo.logo-dark {
  display: none;
}
.auth-logo.logo-light {
  display: block;
}
html.dark .auth-logo.logo-dark {
  display: block;
}
html.dark .auth-logo.logo-light {
  display: none;
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.auth-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 320px;
}

/* Bouton CTA Dinia SSO */
.btn-dinia-sso-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--color-dinia-ikb);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 47, 167, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn-dinia-sso-cta:hover {
  transform: translateY(-1.5px);
  background: #002685;
  box-shadow: 0 8px 20px rgba(0, 47, 167, 0.45);
}
.btn-dinia-sso-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 47, 167, 0.25);
}

.auth-error-banner {
  width: 100%;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}
