body[data-area="auth"],
#auth-screen {
  --access-bg: #fff;
  --access-ink: #17191d;
  --access-muted: #646a72;
  --access-border: #d9dce1;
  --access-accent: #202227;
  --access-soft: #f5f5f6;
  background: var(--access-bg);
  color: var(--access-ink);
  color-scheme: light;
}

#auth-screen #access-motion-toggle,
#auth-screen #auth-eyebrow,
#auth-screen .access-card-foot,
#auth-screen .access-footer > span,
#auth-screen .access-divider,
#auth-screen .access-card[data-mode="login"] #auth-note {
  display: none;
}

#auth-screen .access-header,
#auth-screen .access-footer {
  min-width: 0;
  padding: 20px clamp(20px, 2.1vw, 44px);
}

#auth-screen .access-header .auralink-wordmark {
  width: 122px;
  height: auto;
  background: transparent;
  box-shadow: none;
}

#auth-screen .access-back,
#auth-screen .access-back span,
#auth-screen .access-footer a,
#auth-screen .access-footer button {
  color: var(--access-accent);
  font-size: 14px;
}

#auth-screen .access-back {
  gap: 8px;
}

#auth-screen .access-gallery { display: none; }

#auth-screen .access-stage {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 28px clamp(24px, 3vw, 52px);
}

@media (min-width: 841px) {
  #auth-screen:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(424px, 31.25vw, 680px);
    grid-template-rows: auto 1fr auto;
  }
  #auth-screen .access-header { grid-area: 1 / 2; }
  #auth-screen .access-stage { grid-area: 2 / 2; }
  #auth-screen .access-footer { grid-area: 3 / 2; }
  #auth-screen .access-gallery {
    display: block;
    grid-area: 1 / 1 / 4 / 2;
    align-self: start;
    position: sticky;
    top: 0;
    isolation: isolate;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #101114;
  }
  #auth-screen .access-prints {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    padding-inline: 9px;
  }
  #auth-screen .access-strip {
    --drift-period: 88s;
    --tile-height: clamp(190px, 33vh, 540px);
    display: flex;
    flex-direction: column;
    align-self: start;
    min-width: 0;
    margin-top: -32px;
    animation: access-gallery-drift var(--drift-period) linear infinite;
  }
  #auth-screen .access-strip:nth-child(even) { animation-direction: reverse; }
  #auth-screen .access-strip:nth-child(2) { --drift-period: 96s; margin-top: -72px; }
  #auth-screen .access-strip:nth-child(3) { --drift-period: 92s; margin-top: -14px; }
  #auth-screen .access-strip:nth-child(4) { --drift-period: 101s; margin-top: -54px; }
  #auth-screen .access-strip-set {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 9px;
    padding-bottom: 9px;
  }
  #auth-screen .access-work {
    display: block;
    flex: none;
    width: 100%;
    height: var(--tile-height);
    border-radius: 8px;
    object-fit: cover;
    background-color: #27292d;
  }
  #auth-screen .access-work:nth-child(3n + 2) { height: calc(var(--tile-height) * 1.21); }
  #auth-screen .access-work:nth-child(3n) { height: calc(var(--tile-height) * .85); }
  #auth-screen .access-gallery::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #101113 0%, rgb(15 16 18 / 90%) 11%, rgb(15 16 18 / 48%) 27%, transparent 54%);
    pointer-events: none;
  }
  #auth-screen .access-gallery-copy {
    position: absolute;
    z-index: 1;
    bottom: clamp(30px, 5.3vh, 62px);
    inset-inline: clamp(22px, 2.35vw, 52px);
    color: #fff;
  }
  #auth-screen .access-gallery-copy h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(25px, 2vw, 42px);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.035em;
  }
  #auth-screen .access-gallery-copy p { margin: 12px 0 0; color: #e1e3e6; font-size: 14px; line-height: 1.6; }
}

/* The trailing gutter belongs to each set so a half-track translation is one exact loop. */
@keyframes access-gallery-drift {
  to { transform: translateY(-50%); }
}

@media (min-width: 841px) and (max-width: 1199px) {
  #auth-screen .access-prints { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  #auth-screen .access-strip { animation: none; }
}

#auth-screen .access-card {
  display: block;
  width: min(100%, 380px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#auth-screen .access-card::before { content: none; }

#auth-screen .access-card-heading {
  margin: 0;
  padding: 0;
  text-align: left;
}

#auth-screen .access-emblem { display: none; }

body[data-console="customer"] #auth-screen .access-card #auth-title {
  color: var(--access-ink);
  font-size: 30px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

#auth-screen .access-card #auth-caption {
  margin: 8px 0 0;
  color: var(--access-muted);
  font-size: 14px;
  line-height: 1.65;
}

#auth-screen #auth-form {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 32px 0 0;
}

#auth-screen .access-mode-switch {
  margin-top: 23px;
  text-align: center;
  font-size: 13px;
  color: var(--access-muted);
}

#auth-screen .access-mode-switch button {
  min-height: 32px;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: var(--access-ink);
  font: inherit;
  font-weight: 600;
}

#auth-screen .access-mode-switch button:hover { text-decoration: underline; }

#auth-screen .access-card #auth-form > label,
#auth-screen .access-password-label label,
#auth-screen .signup-label,
#auth-screen .signup-label[for="signup-password-confirmation"] {
  color: var(--access-ink) !important;
  font-size: 13px !important;
  font-weight: 550;
}

#auth-screen .access-input {
  margin-bottom: 18px;
}

#auth-screen .access-input > span,
#auth-screen #access-password-toggle {
  color: var(--access-muted);
}

body[data-console="customer"] #auth-screen .access-input input {
  height: 42px;
  padding: 9px 12px;
  border-radius: 7px;
  border-color: var(--access-border);
  color: var(--access-ink);
  background: #f7f7f8;
  box-shadow: none;
  caret-color: var(--access-accent);
}

body[data-console="customer"] #auth-screen #access-password { padding-inline-end: 44px; }

body[data-console="customer"] #auth-screen .access-input input:disabled {
  color: var(--access-muted);
  background: var(--access-bg);
}

body[data-console="customer"] #auth-screen .access-input input::placeholder {
  color: #677185;
  font-size: 14px;
}

body[data-console="customer"] #auth-screen .access-input input:not(:disabled):hover {
  border-color: #a8adb5;
}

body[data-console="customer"] #auth-screen .access-input input:focus {
  background: #fff;
  border-color: var(--access-accent);
  box-shadow: 0 0 0 3px rgb(24 27 31 / 10%);
}

body[data-console="customer"] #auth-screen .access-input input:-webkit-autofill {
  -webkit-text-fill-color: var(--access-ink) !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  caret-color: var(--access-accent);
}

#auth-screen #access-password-toggle {
  top: 4px;
  height: 34px;
}

#auth-screen #access-password-toggle:hover {
  background: var(--access-soft);
  color: var(--access-accent);
}

#auth-screen .access-help,
#auth-screen .signup-image-help button,
#auth-screen .google-access-retry {
  color: var(--access-accent);
}

#auth-screen .access-account-note,
#auth-screen .access-password-help {
  color: var(--access-muted) !important;
  font-size: 13px !important;
}

#auth-screen .access-helper-slot .access-password-help {
  margin-bottom: 14px !important;
}

#auth-screen .access-error,
#auth-screen .signup-mail-status[data-kind="error"],
#auth-screen .google-access-error {
  color: #a32426 !important;
}

#auth-screen .access-error {
  background: #fff3f2;
  border-color: #f1c4c0;
}

#auth-screen .signup-status {
  padding: 9px 12px;
  border-color: #d9e6de;
  background: #eff4f1;
  color: #3549a4;
  font-size: 13px;
}

#auth-screen .signup-status.unavailable {
  border-color: #f1d9b6;
  background: #fff6e9;
  color: #755021;
}

#auth-screen #signup-send-code { height: 42px; }

#auth-screen .signup-captcha-row > button {
  height: 42px;
  border-color: var(--access-border);
  border-radius: 8px;
  background: var(--access-bg);
  color: var(--access-accent);
  font-size: 13px;
}

#auth-screen .signup-captcha-row > button:not(:disabled):hover {
  border-color: #959db8;
  background: #eef0f9;
}

#auth-screen .signup-image-help,
#auth-screen .signup-image-help button,
#auth-screen .signup-policy {
  font-size: 12px;
}

#auth-screen .signup-image-help,
#auth-screen .signup-policy,
#auth-screen .google-access-divider,
#auth-screen .google-access-status {
  color: var(--access-muted);
}

#auth-screen .signup-mail-status {
  color: #206448;
}

#auth-screen .google-access {
  margin-top: 24px;
}

#auth-screen .google-access-divider {
  margin-bottom: 16px;
  font-size: 12px;
}

#auth-screen .google-access-divider::before,
#auth-screen .google-access-divider::after {
  background: var(--access-border);
}

#auth-screen .google-access-mark {
  flex: none;
  width: 18px;
  height: 18px;
  background: none;
}

#auth-screen .google-access-feedback {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

#auth-screen .google-access-status,
#auth-screen .google-access-retry {
  margin: 0;
  font-size: 12px;
}

#auth-screen .google-access-retry {
  flex: none;
  min-height: 26px;
  padding: 0;
}

#auth-screen .access-back:hover,
#auth-screen .access-help:hover,
#auth-screen .access-footer a:hover,
#auth-screen .access-footer button:hover,
#auth-screen .signup-image-help button:hover {
  color: #2d3f91;
  text-decoration: underline;
}

#auth-screen .access-footer {
  justify-content: flex-end;
}

#auth-screen .site-language summary {
  border-color: var(--access-border);
  background: #fff;
  color: var(--access-ink);
}

#auth-screen .site-language summary:hover {
  border-color: #959db8;
  background: #eef0f9;
}

#auth-screen .site-language-mark,
#auth-screen .site-language-options button[aria-pressed="true"]::after {
  color: var(--access-accent);
}

#auth-screen .site-language-options button {
  color: var(--access-ink);
}

#auth-screen .site-language-options button:hover,
#auth-screen .site-language-options button[aria-pressed="true"] {
  background: #eef0f9;
  color: var(--access-accent);
}

#auth-screen :is(a, button, summary):focus-visible {
  outline: 2px solid var(--access-accent);
  outline-offset: 3px;
}

#signup-domain-notice,
body[data-area="auth"] #site-support {
  border-color: #dfe2eb;
  background: #fff;
  color: #202835;
  color-scheme: light;
}

#signup-domain-notice {
  width: min(520px, calc(100% - 24px));
}

#signup-domain-notice::backdrop,
body[data-area="auth"] #site-support::backdrop {
  background: #20283566;
}

#signup-domain-notice .dialog-head {
  margin-bottom: 10px;
}

#signup-domain-notice h2,
body[data-area="auth"] #site-support h2,
body[data-area="auth"] #site-support .support-contact strong {
  color: #202835;
}

#signup-domain-notice p,
body[data-area="auth"] #site-support p,
body[data-area="auth"] #site-support .support-contact > span {
  color: #555e6f;
}

#signup-domain-notice .signup-domain-list li,
body[data-area="auth"] #site-support .support-contact {
  border-color: #dfe2eb;
  background: #faf9f6;
}

#signup-domain-notice .dialog-actions .primary {
  border-color: #3549a4;
  background: #3549a4;
  color: #fff;
}

#signup-domain-notice .dialog-actions .primary:focus-visible {
  outline: 2px solid #3549a4;
  outline-offset: 3px;
}

body[data-area="auth"] #site-support .close-button {
  border-color: #dfe2eb;
  background: #faf9f6;
  color: #3549a4;
}

@media (max-width: 840px) {
  #auth-screen .access-header,
  #auth-screen .access-footer {
    padding: 15px 16px;
  }

  #auth-screen .access-stage {
    padding: 18px 20px;
  }

  #auth-screen .access-card {
    width: min(100%, 380px);
  }

  body[data-console="customer"] #auth-screen .access-card #auth-title {
    font-size: 28px;
  }

  #auth-screen #auth-form {
    padding-top: 26px;
  }

  #auth-screen .access-header>div {
    gap: 8px;
  }

  #auth-screen .access-back {
    font-size: 12px;
  }
}

@media (max-width: 365px) {
  #auth-screen .access-stage {
    padding-inline: 10px;
  }

  #auth-screen .signup-captcha-row > button {
    width: 104px;
  }
}


