.auth-page {
  position: relative;
  isolation: isolate;
  background: var(--color-night-deep);
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 70px);
  width: min(1480px, calc(100% - 40px));
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-block: 20px;
}

.auth-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 9px 18px 9px 12px;
  border-radius: 22px;
}

.auth-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--color-white);
  font-weight: 800;
  text-decoration: none;
}

.auth-brand img {
  width: 104px;
  height: 54px;
  margin: -9px -2px -9px -7px;
  object-fit: contain;
}

.auth-brand__divider {
  width: 1px;
  height: 24px;
  margin-inline: 14px;
  background: rgba(255, 255, 255, 0.22);
}

.auth-brand__product {
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.auth-topbar__status {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: #d8e3f2;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 0;
  overflow: hidden;
  padding: clamp(36px, 7vh, 96px) clamp(12px, 3vw, 44px);
}

.auth-hero__copy {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.auth-hero h1 {
  max-width: 700px;
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 6.1vw, 6.1rem);
  font-weight: 760;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.auth-hero__headline-line {
  display: block;
  text-wrap: balance;
}

.auth-hero__headline-line:last-child::after {
  content: "";
  display: inline-block;
  width: 0.23em;
  height: 0.23em;
  margin-left: 0.12em;
  border-radius: 50%;
  background: var(--color-blue);
  box-shadow: 0 0 36px rgba(0, 170, 224, 0.75);
}

.auth-hero__lead {
  max-width: 540px;
  margin-bottom: clamp(34px, 6vh, 72px);
  color: #bdcbe0;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.auth-hero__trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #d7e3f1;
  font-size: 0.8rem;
  font-weight: 700;
}

.trust-mark,
.access-note__icon {
  position: relative;
  flex: 0 0 auto;
  width: 17px;
  height: 20px;
  border: 1.7px solid currentColor;
  border-radius: 5px 5px 7px 7px;
}

.trust-mark {
  color: var(--color-blue-action);
  filter: drop-shadow(0 0 9px rgba(99, 221, 255, 0.34));
}

.trust-mark::before,
.access-note__icon::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 5px;
  height: 8px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translateX(-60%) rotate(42deg);
}

.liquid-symbol {
  position: absolute;
  z-index: 1;
  right: clamp(-38px, -2vw, -12px);
  bottom: clamp(6px, 5vh, 60px);
  width: clamp(180px, 25vw, 360px);
  aspect-ratio: 0.88;
  opacity: 0.86;
  pointer-events: none;
  transform: translate3d(var(--depth-x, 0), var(--depth-y, 0), 0) rotate(-2deg);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-symbol__halo {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 170, 224, 0.22), transparent 67%);
  filter: blur(18px);
}

.liquid-symbol__piece {
  position: absolute;
  display: block;
  width: 44%;
  height: 17%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.34),
    inset 0 -8px 18px rgba(0, 20, 50, 0.18),
    0 24px 60px rgba(0, 8, 24, 0.34);
  transform: rotate(-45deg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.liquid-symbol__piece::after {
  content: "";
  position: absolute;
  inset: 8% 10% auto;
  height: 28%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(5px);
}

.liquid-symbol__piece--blue {
  top: 2%;
  right: 5%;
  background: linear-gradient(135deg, #61e2ff, #00aae0 52%, #0873ca);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.5),
    0 22px 60px rgba(0, 170, 224, 0.36);
}

.liquid-symbol__piece--glass {
  top: 29%;
  left: 20%;
  width: 59%;
  height: 30%;
  border-radius: 28%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(183, 224, 241, 0.12));
}

.liquid-symbol__piece--soft {
  right: 3%;
  bottom: 6%;
  background: linear-gradient(135deg, rgba(121, 224, 250, 0.62), rgba(44, 111, 170, 0.2));
}

.access-stage {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(24px, 5vh, 58px) clamp(6px, 2vw, 30px);
}

.access-panel-wrap {
  width: min(470px, 100%);
  perspective: 1200px;
}

.access-panel {
  width: 100%;
  padding: clamp(32px, 4.8vw, 54px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.access-panel:hover,
.access-panel:focus-within {
  border-color: rgba(138, 231, 255, 0.42);
}

.access-panel__glow {
  position: absolute;
  z-index: 0;
  top: -140px;
  right: -120px;
  width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 213, 255, 0.21), transparent 69%);
  pointer-events: none;
}

.access-panel > :not(.access-panel__glow) {
  position: relative;
  z-index: 1;
}

.access-panel__heading {
  margin-bottom: 30px;
}

.access-panel__heading h2 {
  max-width: 360px;
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 3.3vw, 3.35rem);
  line-height: 1.02;
  text-wrap: balance;
}

.access-panel__heading > p:last-child {
  margin-bottom: 0;
  color: #b9c7da;
  font-size: 1rem;
}

.auth-feedback {
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #ffd0ce;
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-feedback:not(:empty) {
  min-height: 46px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 155, 152, 0.28);
  border-radius: 13px;
  background: rgba(180, 35, 24, 0.14);
}

.microsoft-button {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 15px 18px;
  overflow: hidden;
  border: 1px solid rgba(125, 229, 255, 0.54);
  border-radius: 16px;
  color: var(--color-night-deep);
  background: linear-gradient(135deg, #ffffff, #daf7ff 58%, #b9eeff);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 18px 42px rgba(0, 170, 224, 0.22);
  font-size: 0.96rem;
  font-weight: 820;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
}

.microsoft-button::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -35%;
  width: 42%;
  height: 340%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), transparent);
  transform: rotate(22deg);
  transition: left 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.microsoft-button:hover,
.microsoft-button:focus-visible {
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 22px 55px rgba(0, 170, 224, 0.34);
  transform: translateY(-3px);
}

.microsoft-button:hover::before,
.microsoft-button:focus-visible::before {
  left: 118%;
}

.microsoft-button:active {
  transform: scale(0.985);
}

.microsoft-button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.76;
}

.microsoft-mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 2px;
}

.microsoft-mark span:nth-child(1) { background: #f25022; }
.microsoft-mark span:nth-child(2) { background: #7fba00; }
.microsoft-mark span:nth-child(3) { background: #00a4ef; }
.microsoft-mark span:nth-child(4) { background: #ffb900; }

.microsoft-button__label {
  text-align: center;
}

.button-arrow {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.microsoft-button:hover .button-arrow,
.microsoft-button:focus-visible .button-arrow {
  transform: translateX(4px);
}

.access-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #b8c6d9;
}

.access-note__icon {
  width: 16px;
  height: 19px;
  margin-top: 2px;
  color: var(--color-blue-action);
}

.access-note p {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.55;
}

.access-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(36px, 6vh, 64px);
  color: #9fb0c7;
  font-size: 0.73rem;
  font-weight: 650;
}

.access-footer__signal {
  width: 18px;
  height: 1px;
  margin-right: 2px;
  background: linear-gradient(90deg, var(--color-blue), transparent);
}

@media (min-width: 981px) {
  .auth-hero {
    overflow: visible;
  }

  .auth-hero__headline-line {
    white-space: nowrap;
  }

  .access-stage {
    position: relative;
    z-index: 2;
  }
}

@media (min-width: 621px) and (max-width: 980px) {
  .auth-hero__headline-line {
    white-space: nowrap;
  }
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
    width: min(100% - 28px, 760px);
    padding-block: 14px 28px;
  }

  .auth-hero {
    min-height: 370px;
    padding: 62px 18px 36px;
  }

  .auth-hero__copy {
    max-width: 620px;
  }

  .auth-hero h1 {
    max-width: 620px;
    font-size: clamp(3rem, 10.5vw, 5.4rem);
  }

  .auth-hero__lead {
    margin-bottom: 34px;
  }

  .liquid-symbol {
    right: -3vw;
    bottom: -30px;
    width: clamp(170px, 32vw, 250px);
    opacity: 0.58;
  }

  .access-stage {
    padding: 28px 0 40px;
  }

  .access-panel-wrap {
    width: min(560px, 100%);
  }
}

@media (max-width: 620px) {
  .auth-shell {
    width: min(100% - 20px, 760px);
    padding-top: 10px;
  }

  .auth-topbar {
    min-height: 64px;
    padding: 7px 13px 7px 8px;
    border-radius: 18px;
  }

  .auth-brand img {
    width: 89px;
    height: 48px;
  }

  .auth-brand__divider {
    height: 20px;
    margin-inline: 10px;
  }

  .auth-brand__product {
    font-size: 0.82rem;
  }

  .auth-topbar__status {
    max-width: 110px;
    justify-content: flex-end;
    font-size: 0.68rem;
    line-height: 1.25;
    text-align: right;
  }

  .auth-hero {
    min-height: 350px;
    padding: 56px 12px 32px;
  }

  .auth-hero h1 {
    max-width: 520px;
    margin-bottom: 20px;
    font-size: clamp(2.75rem, 14.6vw, 4.2rem);
    line-height: 0.96;
  }

  .auth-hero__lead {
    max-width: 90%;
    margin-bottom: 28px;
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .auth-hero__trust {
    font-size: 0.72rem;
  }

  .liquid-symbol {
    right: 20px;
    bottom: 0;
    width: 150px;
    opacity: 0.42;
  }

  .access-panel__glow {
    top: -70px;
    right: 0;
    width: 160px;
  }

  .access-panel {
    padding: 30px 22px;
    border-radius: 25px;
  }

  .access-panel__heading {
    margin-bottom: 26px;
  }

  .access-panel__heading h2 {
    font-size: 2.2rem;
  }

  .microsoft-button {
    grid-template-columns: 20px 1fr 18px;
    gap: 8px;
    min-height: 58px;
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  .microsoft-button__label {
    white-space: nowrap;
  }

  .microsoft-mark {
    grid-template-columns: repeat(2, 8px);
    grid-template-rows: repeat(2, 8px);
  }

  .access-footer {
    margin-top: 34px;
  }
}

@media (max-height: 740px) and (min-width: 981px) {
  .auth-shell {
    gap: 30px;
  }

  .auth-hero {
    padding-block: 28px;
  }

  .auth-hero h1 {
    font-size: clamp(3.3rem, 5.4vw, 5.5rem);
  }

  .auth-hero__lead {
    margin-bottom: 28px;
  }

  .access-panel {
    padding-block: 32px;
  }

  .access-footer {
    margin-top: 32px;
  }
}

@media (forced-colors: active) {
  .access-panel,
  .auth-topbar,
  .microsoft-button {
    border: 2px solid CanvasText;
  }

  .liquid-symbol,
  .liquid-backdrop {
    display: none;
  }
}
