/* Copied verbatim from reference/entra-id/_login-reference.html ("Keep all visual styling identical").
   Moved from an inline <style> block to a file so the admin CSP can forbid inline styles. Do not edit. */
/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --brand:        #4a0e4c;
  --bg-grad-a:    #631664;
  --bg-grad-b:    #8e4ba8;
  --gold:         #f5a300;
  --white:        #ffffff;
  --white-90:     rgba(255,255,255,0.90);
  --white-70:     rgba(255,255,255,0.70);
  --white-50:     rgba(255,255,255,0.50);
  --err:          #e85555;
  --err-bg:       rgba(232,85,85,0.12);

  --r-sm:  8px;
  --r-md:  12px;
  --r-xl:  24px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.15s var(--ease);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); }

/* ── Auth Overlay (full-screen login wall) ─────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Dot-grid + purple radial gradient background */
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.07) 0%, transparent 60%),
    radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(135deg, var(--bg-grad-a) 0%, var(--bg-grad-b) 100%);
  background-size: auto, 26px 26px, 100% 100%;
}

/* ── Auth Card (glassmorphism) ─────────────────────────────── */
.auth-card {
  background: rgba(25, 0, 30, 0.78);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-xl);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.50),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  padding: 48px 44px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: fadeUp 0.6s var(--ease) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ── Logo ──────────────────────────────────────────────────── */
.auth-logo        { margin-bottom: 28px; }
.auth-logo-img    {
  display: block;
  width: 160px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: brightness(1.1);
}

/* ── App Name Headline ─────────────────────────────────────── */
.auth-headline {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 12px;
}

/* ── Subtext ───────────────────────────────────────────────── */
.auth-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--white-70);
  margin-bottom: 28px;
}

/* ── Microsoft Login Button ────────────────────────────────── */
.ms-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 24px;
  background: #ffffff;
  color: #1e1e1e;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(0,0,0,0.30);
  transition: var(--t-fast);
}
.ms-login-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.ms-login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Error Message ─────────────────────────────────────────── */
.auth-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--err-bg);
  border: 1px solid rgba(232,85,85,0.25);
  border-radius: var(--r-sm);
  color: #ff9999;
  font-size: 13px;
  text-align: left;
}
.auth-error.hidden { display: none; }

/* ── Footer Hint ───────────────────────────────────────────── */
.auth-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--white-50);
}
