.auth-page {
  min-width: 320px;
  background: #11171b;
}

.auth-page main {
  min-height: 100vh;
  padding: 0;
}

.auth-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 40px 20px;
  background: #11171b;
  isolation: isolate;
}

.auth-shell::before {
  position: absolute;
  inset: 32px;
  z-index: -1;
  border: 1px solid rgba(148, 163, 184, 0.08);
  content: "";
  pointer-events: none;
}

.auth-accent {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  height: 4px;
  grid-template-columns: repeat(4, 1fr);
}

.auth-accent span:nth-child(1) {
  background: #0087b0;
}

.auth-accent span:nth-child(2) {
  background: #3cb6b1;
}

.auth-accent span:nth-child(3) {
  background: #f25022;
}

.auth-accent span:nth-child(4) {
  background: #ffb900;
}

.auth-stage {
  width: min(100%, 520px);
}

.auth-panel {
  overflow: hidden;
  border: 1px solid #34414a;
  border-radius: 8px;
  background: #1a2329;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.auth-brand {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  border-bottom: 1px solid #dde3e7;
  background: #f8fafb;
}

.auth-brand-logo {
  width: 104px;
  height: auto;
  flex: 0 0 auto;
}

.auth-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  border-left: 1px solid #d6dde1;
}

.auth-brand-copy strong {
  color: #242b30;
  font-size: 0.96rem;
  font-weight: 700;
}

.auth-brand-copy span {
  color: #68757d;
  font-size: 0.76rem;
  font-weight: 500;
}

.auth-content {
  padding: 44px 42px 40px;
}

.auth-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: #64d0ca;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-eyebrow span {
  width: 7px;
  height: 7px;
  background: #3cb6b1;
}

.auth-content h1 {
  margin: 0;
  color: #f7f9fa;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0;
}

.auth-intro {
  margin: 18px 0 30px;
  color: #b4c0c7;
  font-size: 1rem;
  line-height: 1.65;
}

.microsoft-sign-in {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid #d8dee2;
  border-radius: 6px;
  color: #1d252b;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.microsoft-sign-in:hover {
  border-color: #b8c2c8;
  color: #11171b;
  background: #f5f7f8;
  box-shadow: 0 11px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.microsoft-sign-in:focus-visible {
  outline: 3px solid rgba(60, 182, 177, 0.52);
  outline-offset: 3px;
}

.microsoft-symbol {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 2px;
}

.microsoft-symbol span {
  display: block;
}

.microsoft-symbol span:nth-child(1) {
  background: #f25022;
}

.microsoft-symbol span:nth-child(2) {
  background: #7fba00;
}

.microsoft-symbol span:nth-child(3) {
  background: #00a4ef;
}

.microsoft-symbol span:nth-child(4) {
  background: #ffb900;
}

.auth-provider {
  margin: 22px 0 0;
  color: #788a94;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.auth-footer {
  margin: 18px 0 0;
  color: #708087;
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 560px) {
  .auth-shell {
    padding: 20px 14px;
  }

  .auth-shell::before {
    display: none;
  }

  .auth-brand {
    min-height: 76px;
    gap: 14px;
    padding: 16px 20px;
  }

  .auth-brand-logo {
    width: 92px;
  }

  .auth-brand-copy {
    padding-left: 14px;
  }

  .auth-content {
    padding: 36px 24px 34px;
  }

  .auth-content h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 380px) {
  .auth-brand-copy span {
    display: none;
  }

  .auth-content {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .microsoft-sign-in {
    transition: none;
  }
}
