:root {
  color-scheme: light;
  --background: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.9);
  --ink: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #86868b;
  --rule: rgba(29, 29, 31, 0.14);
  --focus: rgba(0, 122, 255, 0.28);
  --error: #b42318;
  --success: #18794e;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --page-gutter: clamp(24px, 11.5741vw, 200px);
  --page-content-max: 1620px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.access-shell {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(30px, 4.25vw, 72px) var(--page-gutter);
}

.access-frame {
  display: grid;
  width: min(var(--page-content-max), 100%);
  min-height: calc(100vh - clamp(60px, 8.5vw, 144px));
  min-height: calc(100svh - clamp(60px, 8.5vw, 144px));
  margin: 0 auto;
  grid-template-rows: auto 1fr;
}

.access-header {
  display: flex;
  padding-bottom: clamp(42px, 5vw, 78px);
  align-items: center;
  justify-content: space-between;
}

.access-brand {
  width: clamp(118px, 8.2vw, 152px);
  line-height: 0;
}

.access-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.access-header > p,
.eyebrow {
  margin: 0;
  color: var(--tertiary);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.18em;
  line-height: 1.25;
  text-transform: uppercase;
}

.access-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 2.5vw, 42px);
  align-items: center;
}

.access-editorial {
  grid-column: 1 / span 7;
  max-width: 890px;
  padding: clamp(18px, 3vw, 54px) clamp(26px, 3vw, 54px) clamp(56px, 6vw, 104px) 0;
}

.access-editorial .eyebrow {
  margin-bottom: clamp(24px, 2.1vw, 34px);
}

.access-editorial h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(54px, 5.25vw, 90px);
  font-weight: 640;
  letter-spacing: -0.064em;
  line-height: 0.96;
  text-wrap: balance;
}

.access-editorial h1 span {
  color: var(--secondary);
}

.access-lead {
  max-width: 700px;
  margin: clamp(30px, 2.7vw, 44px) 0 0;
  color: var(--secondary);
  font-size: clamp(18px, 1.28vw, 22px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.access-card {
  grid-column: 8 / -1;
  width: 100%;
  max-width: 590px;
  justify-self: end;
  padding: clamp(30px, 3vw, 48px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 32px;
  box-shadow: 0 30px 90px rgba(29, 29, 31, 0.07);
  backdrop-filter: blur(20px);
}

.access-card__header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--rule);
}

.access-card__header h2 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(32px, 2.4vw, 42px);
  font-weight: 650;
  letter-spacing: -0.052em;
  line-height: 1.02;
  text-wrap: balance;
}

.access-card__header p {
  max-width: 420px;
  margin: 15px 0 0;
  color: var(--secondary);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.credential-form {
  display: grid;
  gap: 12px;
  padding-top: 28px;
}

.credential-form > label {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.credential-field {
  position: relative;
}

.credential-field input {
  width: 100%;
  min-height: 56px;
  padding: 0 88px 0 17px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(29, 29, 31, 0.14);
  border-radius: 14px;
  caret-color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.credential-field input:hover {
  border-color: rgba(29, 29, 31, 0.28);
}

.credential-field input:focus {
  border-color: rgba(0, 122, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.credential-field input[aria-invalid="true"] {
  border-color: rgba(180, 35, 24, 0.5);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.credential-visibility {
  position: absolute;
  top: 6px;
  right: 7px;
  min-height: 44px;
  padding: 0 10px;
  color: var(--secondary);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease;
}

.credential-visibility:hover {
  color: var(--ink);
  background: rgba(118, 118, 128, 0.08);
}

.primary-action {
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  padding: 13px 18px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.012em;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-action:hover:not(:disabled) {
  background: #343437;
  border-color: #343437;
  transform: translateY(-1px);
}

.primary-action:active:not(:disabled) {
  transform: translateY(0);
}

.primary-action:disabled {
  color: #98989d;
  background: #e8e8ed;
  border-color: #e8e8ed;
  cursor: not-allowed;
}

.access-divider {
  display: flex;
  gap: 14px;
  margin: 26px 0 18px;
  color: var(--tertiary);
  font-size: 12px;
  font-weight: 500;
  align-items: center;
}

.access-divider::before,
.access-divider::after {
  height: 1px;
  flex: 1;
  background: var(--rule);
  content: "";
}

.google-button {
  display: flex;
  min-height: 44px;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.google-button > div,
.google-button iframe {
  max-width: 100% !important;
}

.access-status {
  min-height: 19px;
  margin: 18px 0 0;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.access-status:empty {
  min-height: 0;
  margin-top: 0;
}

.access-status[data-tone="error"] {
  color: var(--error);
}

.access-status[data-tone="success"] {
  color: var(--success);
}

.access-note {
  margin: 24px 0 0;
  padding-top: 21px;
  color: var(--tertiary);
  border-top: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  :root {
    --page-gutter: clamp(34px, 5.4vw, 72px);
  }

  .access-editorial {
    grid-column: 1 / span 7;
  }

  .access-card {
    grid-column: 8 / -1;
  }

  .access-editorial h1 {
    font-size: clamp(48px, 5.7vw, 68px);
  }
}

@media (max-width: 900px) {
  .access-shell {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .access-frame {
    min-height: auto;
  }

  .access-header {
    padding-bottom: 72px;
  }

  .access-layout {
    grid-template-columns: 1fr;
    row-gap: 56px;
  }

  .access-editorial,
  .access-card {
    grid-column: 1;
  }

  .access-editorial {
    max-width: 760px;
    padding: 0;
  }

  .access-card {
    max-width: 680px;
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 24px;
  }

  .access-shell {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .access-header {
    padding-bottom: 58px;
  }

  .access-brand {
    width: 116px;
  }

  .access-header > p {
    font-size: 10px;
    letter-spacing: 0.15em;
  }

  .access-editorial .eyebrow {
    margin-bottom: 22px;
    font-size: 10px;
  }

  .access-editorial h1 {
    font-size: clamp(43px, 12.8vw, 58px);
    letter-spacing: -0.061em;
  }

  .access-lead {
    margin-top: 26px;
    font-size: 17px;
    line-height: 1.48;
  }

  .access-layout {
    row-gap: 46px;
  }

  .access-card {
    padding: 27px 22px 24px;
    border-radius: 24px;
  }

  .access-card__header {
    padding-bottom: 25px;
  }

  .access-card__header h2 {
    font-size: 31px;
  }

  .credential-form {
    padding-top: 25px;
  }

  .credential-field input,
  .primary-action {
    min-height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
