:root {
  color-scheme: light;
  --brand-primary: #003b71;
  --brand-interactive: #0b5fa5;
  --product-accent: #238f84;
  --canvas: #f4f7fa;
  --surface: #fff;
  --text-strong: #212529;
  --text-primary: #344767;
  --text-secondary: #67748e;
  --border: #e9ecef;
  --danger: #b42318;
  --focus-ring: 0 0 0 3px rgba(11, 95, 165, .15);
  font-family: "Open Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
.auth-page {
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow-x: hidden;
  padding: clamp(24px, 4vw, 64px);
  background:
    radial-gradient(circle at 78% 18%, rgba(35,143,132,.12), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(11,95,165,.10), transparent 34%),
    linear-gradient(145deg, #eef4f8, #f8fafc);
  color: var(--text-primary);
}
.auth-brand { position: absolute; top: clamp(20px, 3vw, 40px); left: clamp(20px, 6vw, 96px); display: flex; align-items: center; gap: 12px; color: var(--brand-primary); text-decoration: none; }
.auth-brand-mark { display: inline-grid; width: 42px; height: 42px; place-items: center; border-radius: 8px; background: var(--product-accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; box-shadow: 0 6px 16px rgba(35,143,132,.18); }
.auth-brand > span:last-child { display: grid; gap: 2px; }
.auth-brand strong { font-size: 15px; }
.auth-brand small { color: var(--text-secondary); font-size: 11px; }
.auth-panel { display: flex; width: min(430px, calc(100vw - 32px)); min-height: 340px; flex-direction: column; justify-content: center; padding: 32px; border: 1px solid rgba(255,255,255,.9); border-radius: 8px; background: rgba(255,255,255,.88); box-shadow: 0 36px 90px rgba(0,59,113,.16), 0 18px 42px rgba(33,37,41,.09), 0 4px 12px rgba(33,37,41,.06); backdrop-filter: blur(12px); }
.auth-eyebrow { margin: 0 0 10px; color: var(--brand-interactive); font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0 0 10px; color: var(--brand-primary); font-size: clamp(32px, 3vw, 40px); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
.auth-description { margin: 0 0 24px; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
.microsoft-signin-button { display: inline-flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--brand-primary); border-radius: 8px; background: var(--brand-primary); color: #fff; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.microsoft-signin-button:hover { border-color: var(--brand-interactive); background: var(--brand-interactive); transform: translateY(-1px); }
.microsoft-signin-button:focus-visible, .auth-brand:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.microsoft-signin-button.busy { pointer-events: none; opacity: .72; transform: none; }
.microsoft-signin-button.busy svg { display: none; }
.microsoft-signin-button.busy::before { content: ""; width: 17px; height: 17px; flex: 0 0 17px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.auth-assurance { display: flex; gap: 10px; align-items: center; margin-top: 20px; padding: 12px; border: 1px solid #dce8e6; border-radius: 8px; background: #f1f9f7; }
.assurance-icon { display: inline-grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 50%; background: #d9f0eb; color: #177568; font-size: 12px; font-weight: 700; }
.auth-assurance div { display: grid; gap: 2px; }
.auth-assurance strong { color: var(--text-primary); font-size: 12px; }
.auth-assurance small, .auth-consent-note { color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.auth-consent-note { margin: 16px 0 0; text-align: center; }
.auth-status { margin: 0 0 16px; padding: 12px; border: 1px solid rgba(180,35,24,.22); border-radius: 8px; background: rgba(180,35,24,.08); color: var(--danger); font-size: 14px; font-weight: 600; line-height: 1.45; }
.auth-status.info { color: var(--brand-primary); border-color: rgba(11,95,165,.2); background: rgba(11,95,165,.07); }
.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 575.98px) {
  .auth-page { place-items: start center; padding: 96px 16px 24px; }
  .auth-brand { top: 20px; left: 20px; }
  .auth-panel { min-height: auto; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
