:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #17152b;
  background: #f3f7fc;
}

* { box-sizing: border-box; }

.microsoft-auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 174, 239, .13), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(108, 0, 255, .1), transparent 34%),
    #f5f7fb;
}

.microsoft-sign-in{font-family:inherit;font-size:14px;border:1px solid transparent;margin-bottom:12px}
.microsoft-sign-in.google-sign-in{background:#fff;color:#26364c;border-color:#cdd5df;box-shadow:none}
.microsoft-sign-in.auth-unavailable{cursor:not-allowed;opacity:.65;box-shadow:none}
.provider-state{font-size:12px;color:#68768b;margin:0 0 18px}
.auth-notice{padding:12px;border-radius:10px;background:#edf3fb;color:#34516f;font-size:13px;line-height:1.5}
.auth-setup-details{text-align:left;margin-top:24px;border-top:1px solid #e0e6ee;padding-top:18px;font-size:12px;color:#59687e;overflow-wrap:anywhere}
.auth-setup-details summary{cursor:pointer;font-weight:700}
.auth-setup-details h2{font-size:14px;margin-bottom:6px}
.auth-setup-details li{margin:5px 0}
.auth-local-link{display:block;margin-top:22px;color:#1267e8}
@media(max-width:600px){.microsoft-auth-page{display:flex;flex-direction:column}.microsoft-auth-card{padding:28px}}

.microsoft-auth-card {
  width: min(460px, 100%);
  padding: 42px;
  border: 1px solid #dfe5ef;
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(40, 60, 95, .14);
  text-align: center;
}

.auth-csc-logo {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.auth-eyebrow {
  margin: 22px 0 4px;
  color: #72009f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.microsoft-auth-card h1 { margin: 0; font-size: 35px; }
.auth-intro { margin: 12px 0 26px; color: #657086; line-height: 1.55; }

.microsoft-sign-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: #1267e8;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(18, 103, 232, .24);
}

.microsoft-sign-in:hover { background: #0758cc; }
.microsoft-sign-in:focus-visible { outline: 3px solid rgba(18, 103, 232, .3); outline-offset: 3px; }
.microsoft-sign-in svg { width: 22px; height: 22px; padding: 2px; background: #fff; }
.microsoft-auth-card > small { display: block; margin-top: 20px; color: #7d8492; }
.setup-card ul { display: grid; gap: 7px; margin: 0 0 24px; padding: 0; list-style: none; }
.setup-card li { padding: 9px 12px; border-radius: 10px; background: #f3eff8; color: #5d2479; font-family: Consolas, monospace; }
.try-again { margin-top: 18px; }

.signed-in-user {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 9px;
  margin: 0 5px 18px;
  padding: 11px;
  border: 1px solid #dce2ed;
  border-radius: 15px;
  background: #fff;
}

.signed-in-user .user-initials {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0877f9, #6121ed);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.signed-in-user > span:nth-child(2) { display: grid; min-width: 0; align-content: center; }
.signed-in-user strong, .signed-in-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signed-in-user strong { color: #272238; font-size: 12px; }
.signed-in-user small { color: #777f91; font-size: 10px; }
.signed-in-user .log-off {
  grid-column: 1 / -1;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 9px;
  background: #0d6bea;
  color: #fff;
  font-size: 11px;
}

@media (max-width: 520px) {
  .microsoft-auth-card { padding: 30px 22px; border-radius: 22px; }
  .microsoft-auth-card h1 { font-size: 29px; }
}
