:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #122b49;
  background: #fff;
  font-synthesis: none;
  --blue: #175cd3;
  --muted: #596b80;
  --border: #dce4ed;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
a { color: var(--blue); }
[hidden] { display: none !important; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 4px; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 12px; background: white; z-index: 10; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 104px; padding: 20px 6%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; text-decoration: none; color: #122b49; font-weight: 600; font-size: 20px; letter-spacing: -.6px; }
.company-logo { width: 166px; height: auto; }
.brand-divider { width: 1px; height: 26px; background: var(--border); }
.environment { font-size: 12px; font-weight: 550; color: #53677e; background: #f3f6fa; border: 1px solid var(--border); border-radius: 5px; padding: 7px 10px; white-space: nowrap; }
.environment-detail { color: #627286; font-weight: 400; }
.signin-main { width: min(1120px, 88%); margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 460px; align-items: center; gap: 70px; padding: 60px 0 96px; }
.eyebrow { font-size: 13px; font-weight: 550; letter-spacing: .035em; color: var(--blue); margin: 0 0 22px; }
h1 { font-size: clamp(42px, 4.5vw, 62px); font-weight: 350; line-height: 1.12; letter-spacing: -2.6px; margin: 0 0 26px; }
.intro-copy { font-size: 17px; line-height: 1.8; color: var(--muted); margin: 0; }
.signin-card { border: 1px solid var(--border); border-radius: 14px; padding: 38px; background: #fff; box-shadow: 0 8px 32px #122b4905; }
.entry-icon { width: 46px; height: 46px; background: #edf4ff; color: var(--blue); border-radius: 12px; display: grid; place-items: center; margin-bottom: 29px; }
.entry-icon svg { width: 25px; height: 25px; }
h2 { font-weight: 500; letter-spacing: -.7px; font-size: 27px; margin: 0 0 13px; }
.card-copy { font-size: 14px; color: var(--muted); line-height: 1.75; margin: 0 0 30px; }
.button { min-height: 50px; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 7px; font-size: 14px; font-weight: 550; text-decoration: none; transition: background .15s; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: #124ba9; }
.primary:active { background: #103d86; }
.button[aria-disabled="true"] { opacity: .7; cursor: wait; }
.button-arrow { margin-left: auto; font-size: 20px; line-height: 16px; font-weight: 400; }
.microsoft-mark { width: 17px; height: 17px; flex-shrink: 0; }
.support { border-top: 1px solid #e8edf3; margin-top: 28px; padding-top: 18px; font-size: 12px; color: var(--muted); }
.support summary { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; color: var(--blue); cursor: pointer; list-style: none; font-weight: 550; }
.support summary::-webkit-details-marker { display: none; }
.support details p { line-height: 1.7; margin: 8px 0 0; max-width: 330px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #edf0f5; margin: 0 6%; padding: 25px 0 28px; font-size: 11px; color: #64758a; }
.site-footer > span:first-child { font-weight: 550; }
.notice { padding: 13px 14px; margin: 0 0 20px; background: #edf4ff; border-left: 3px solid var(--blue); font-size: 13px; line-height: 1.65; color: #254467; }
.portal-main { width: min(1000px, 88%); margin: 60px auto; flex: 1; }
.portal-main h1 { font-size: 44px; letter-spacing: -1.6px; }
.portal-main .intro-copy { margin-bottom: 40px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.quiet-link { font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
.empty-state { border: 1px solid var(--border); background: #f8faff; border-radius: 12px; padding: 48px 32px; text-align: center; }
.empty-state h2 { font-size: 22px; }
.empty-state p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.identity { overflow-wrap: anywhere; }
.section-heading { font-size: 18px; letter-spacing: -.2px; margin-bottom: 20px; }

@media (max-width: 950px) {
  .signin-main { gap: 36px; grid-template-columns: minmax(0, 1fr) 410px; }
  h1 { font-size: 46px; }
  .signin-card { padding: 30px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 82px; }
  .brand { gap: 12px; font-size: 18px; }
  .company-logo { width: 125px; }
  .signin-main { grid-template-columns: 1fr; width: min(460px, 88%); gap: 32px; padding: 34px 0 50px; }
  .intro h1 { font-size: 42px; letter-spacing: -1.7px; margin-bottom: 17px; }
  .intro-copy { font-size: 15px; line-height: 1.7; }
  .signin-card { padding: 28px; }
  .entry-icon { margin-bottom: 22px; }
  .site-footer { font-size: 10px; padding: 22px 0; }
  .environment-detail { display: none; }
  .portal-main { margin: 35px auto; }
  .header-actions { gap: 12px; }
  body[data-page="portal"] .site-header { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .signin-card { padding: 23px; }
  h2 { font-size: 24px; }
  .button { font-size: 13px; gap: 9px; }
  .site-footer { flex-direction: column; gap: 8px; }
  .brand { gap: 10px; font-size: 16px; }
  .company-logo { width: 108px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
