:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #102a43;
  background: #eef3f8;
}

* { box-sizing: border-box; }

body { margin: 0; }

.auth-page {
  min-height: 100vh;
  padding: clamp(20px, 5vw, 64px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 12% 12%, rgba(79, 70, 229, .18), transparent 32%),
    radial-gradient(circle at 88% 86%, rgba(14, 165, 233, .16), transparent 34%),
    linear-gradient(145deg, #0b1f38 0 42%, #eef3f8 42% 100%);
}

.login-shell {
  width: min(1040px, 100%);
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(4, 20, 39, .28);
}

.login-story {
  padding: clamp(42px, 7vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #e8f1fb;
  background:
    linear-gradient(155deg, rgba(30, 64, 175, .88), rgba(8, 34, 61, .98)),
    #0b1f38;
}

.login-logo {
  width: min(330px, 82%);
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
  margin-bottom: 42px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(14, 165, 233, .25);
}

.eyebrow, .card-kicker {
  margin: 0 0 12px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

h1 {
  max-width: 560px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -2.7px;
}

.intro {
  max-width: 570px;
  margin: 24px 0 34px;
  color: #cbdcec;
  font-size: 17px;
  line-height: 1.65;
}

.trust-row { display: flex; flex-wrap: wrap; gap: 9px; }
.trust-row span {
  padding: 7px 10px;
  border: 1px solid rgba(147, 197, 253, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 650;
}

.login-card {
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.card-kicker { color: #4f46e5; }
.login-card h2 {
  margin: 0 0 12px;
  color: #102a43;
  font-size: 34px;
  letter-spacing: -1.2px;
}
.login-card > p:not(.card-kicker, .fine-print) {
  margin: 0;
  color: #627d98;
  line-height: 1.6;
}

.login-button {
  min-height: 54px;
  margin: 30px 0 16px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #3730a3;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 25px rgba(67, 56, 202, .22);
  transition: transform .16s ease, box-shadow .16s ease;
}
.login-button:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(67, 56, 202, .3); }
.login-button:focus-visible { outline: 3px solid #7dd3fc; outline-offset: 3px; }

.microsoft-mark {
  width: 20px;
  height: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  flex: 0 0 auto;
}
.microsoft-mark i:nth-child(1) { background: #f25022; }
.microsoft-mark i:nth-child(2) { background: #7fba00; }
.microsoft-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-mark i:nth-child(4) { background: #ffb900; }

.fine-print {
  margin: 0;
  color: #829ab1;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.denied-shell {
  width: min(560px, 100%);
  min-height: 0;
  grid-template-columns: 1fr;
}
.denied-logo {
  width: min(280px, 82%);
  height: auto;
  margin: 0 auto 28px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
}
.denied-shell h1 {
  color: #102a43;
  font-size: clamp(32px, 7vw, 44px);
  letter-spacing: -1.5px;
}
.denied-shell .login-card > p:not(.card-kicker, .fine-print) { margin-top: 12px; }
.secondary-login {
  border-color: #cbd5e1;
  background: #fff;
  color: #334155;
  box-shadow: none;
}
.secondary-login:hover { background: #f8fafc; box-shadow: 0 10px 22px rgba(15, 23, 42, .1); }

@media (max-width: 780px) {
  .auth-page { padding: 18px; background: linear-gradient(160deg, #0b1f38 0 32%, #eef3f8 32%); }
  .login-shell { min-height: 0; grid-template-columns: 1fr; border-radius: 18px; }
  .login-story { padding: 34px 28px; }
  .login-logo { width: min(290px, 90%); margin-bottom: 24px; border-radius: 12px; }
  h1 { font-size: clamp(32px, 10vw, 46px); letter-spacing: -1.8px; }
  .intro { margin: 18px 0 24px; font-size: 15px; }
  .login-card { padding: 34px 28px 38px; }
}

@media (max-width: 420px) {
  .auth-page { padding: 0; place-items: stretch; }
  .login-shell { min-height: 100vh; border: 0; border-radius: 0; }
  .login-story, .login-card { padding-inline: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-button { transition: none; }
}
