body[data-auth-shell="true"] {
  min-height: 100vh;
  background: #080808;
  color: #f4f4f0;
}

body[data-auth-shell="true"] main#one-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-shell { width: min(100%, 480px); margin: 0 auto; }
.auth-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding: 0 4px; }
.auth-brand { display: inline-flex; align-items: center; min-height: 44px; }
.auth-brand img { display: block; }
.auth-brand-row > span { color: #aaa; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.auth-language { position: relative; }
.auth-language summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; list-style: none; cursor: pointer; color: #aaa; font-size: 14px; }
.auth-language summary::-webkit-details-marker { display: none; }
.auth-language .one-chevron { width: 5px; height: 5px; border-width: 1px; }
.auth-language > div { position: absolute; z-index: 10; right: 0; top: calc(100% + 4px); width: 160px; max-height: 240px; overflow: auto; padding: 6px; background: #151515; border: 1px solid #444; }
.auth-language a { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; color: #aaa; font-size: 14px; }
.auth-language a:hover, .auth-language a[aria-current="true"] { background: #262626; color: #fff; }

.auth-card { padding: 34px; background: #0e0e0e; border: 1px solid #303030; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 30px; padding: 4px; background: #080808; }
.auth-tabs a { display: grid; place-items: center; min-height: 44px; padding: 8px; color: #aaa; font-size: 14px; text-align: center; }
.auth-tabs a[aria-current="page"] { background: #242424; color: #fff; }

.auth-heading { margin-bottom: 26px; }
.auth-kicker { margin: 0 0 10px; color: #aaa; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.auth-card h1 { margin: 0 0 14px; font-size: clamp(32px, 5vw, 42px); line-height: 1.06; letter-spacing: -.035em; font-weight: 450; }
.auth-copy { max-width: 390px; margin: 0; color: #b8b8b5; font-size: 16px; line-height: 1.55; }

.auth-form, .auth-register-step { display: grid; gap: 14px; margin: 0; }
.auth-register-step[hidden] { display: none; }
.auth-register-form .auth-register-step.is-leaving,
.auth-heading.is-leaving { animation: auth-step-out 110ms ease-in both; }
.auth-register-form .auth-register-step.is-entering,
.auth-heading.is-entering { animation: auth-step-in 240ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes auth-step-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes auth-step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.auth-field { display: grid; gap: 7px; }
.auth-form label { margin: 0; color: #deded8; font-size: 14px; letter-spacing: 0; text-transform: none; }
.auth-input { width: 100%; min-height: 54px; padding: 0 14px; background: #171717; border: 1px solid #454545; color: #f4f4f0; font-size: 16px; transition: border-color 160ms ease, background-color 160ms ease; }
.auth-input:focus, .auth-input:focus-visible { border-color: #aaa; }
.auth-input.is-invalid, .auth-input.is-invalid:focus, .auth-input.is-invalid:focus-visible { border-color: var(--ui-error-border, #df8790); background: var(--ui-error-bg, #271719); }
.auth-inline-error { margin: 0 2px; color: var(--ui-error-text, #f1a1a8); font-size: 13px; line-height: 1.45; }
.auth-inline-error:empty { display: none; }
.auth-field-help { color: #b8b8b5; font-size: 13px; line-height: 1.45; }

.auth-account-types { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.auth-account-types legend { margin: 0 0 10px; color: #aaa; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.auth-account-types label { position: relative; cursor: pointer; }
.auth-account-types input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.auth-account-types label > span { position: relative; display: block; min-height: 72px; padding: 14px 48px 14px 16px; background: #151515; border: 1px solid #383838; transition: border-color 160ms ease, background-color 160ms ease; }
.auth-account-types strong, .auth-account-types small { display: block; }
.auth-account-types strong { color: #eee; font-size: 16px; font-weight: 500; }
.auth-account-types small { margin-top: 4px; color: #b1b1ad; font-size: 13px; line-height: 1.4; }
.auth-account-types i { position: absolute; top: 50%; right: 16px; display: none; width: 22px; height: 22px; transform: translateY(-50%); border-radius: 50%; background: #f4f4f0; color: #050505; font-size: 13px; font-style: normal; text-align: center; line-height: 22px; }
.auth-account-types input:checked + span { background: #222; border-color: #aaa; }
.auth-account-types input:checked + span i { display: block; }
.auth-account-types.has-error label > span { border-color: #df8790; }
.auth-account-types label:hover > span { background: #202020; border-color: #777; }

.auth-step-back { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 2px; padding: 0 4px; background: transparent; border: 0; color: #aaa; font-size: 14px; letter-spacing: 0; text-transform: none; }
.auth-primary { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; margin-top: 8px; padding: 0 18px; background: #f4f4f0; border: 0; color: #555; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.auth-primary span { font-size: 18px; }
.auth-register-form .auth-primary { margin-top: 6px; }
.auth-secondary-form { margin: 8px 0 0; }
.auth-secondary { width: 100%; min-height: 50px; background: transparent; border: 1px solid #555; color: #aaa; font-size: 14px; letter-spacing: 0; text-transform: none; }
.auth-card > .auth-primary { margin-top: 28px; }

.auth-switch { margin: 24px 0 0; color: #aaa; font-size: 14px; line-height: 1.5; text-align: center; }
.auth-switch a { color: #aaa; border-bottom: 1px solid #777; }
.auth-privacy { margin-top: 28px; padding-top: 20px; border-top: 1px solid #333; color: #aaa; font-size: 13px; }
.auth-privacy p { margin: 0; line-height: 1.5; }
.auth-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.auth-state-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 28px; border: 1px solid #444; font-size: 19px; }
.auth-footnote { margin: 20px 0 0; color: #aaa; font-size: 12px; letter-spacing: .07em; text-align: center; text-transform: uppercase; }
.auth-text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: #aaa; font-size: 14px; border-bottom: 1px solid #777; }

.auth-primary, .auth-secondary, .auth-step-back, .auth-switch a, .auth-text-link, .auth-account-types label > span {
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.auth-primary:hover { background: #deded8; color: #000; }
.auth-secondary:hover { background: #242424; border-color: #777; color: #fff; }
.auth-step-back:hover, .auth-switch a:hover, .auth-text-link:hover { color: #fff; }

.access-gate-card { padding-top: 30px; }
.access-gate-status { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; margin-bottom: 26px; padding: 7px 10px; border: 1px solid #444; color: #aaa; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.access-gate-status i { width: 7px; height: 7px; border-radius: 50%; background: #d8b65c; }
.access-gate-card .auth-heading { margin-bottom: 26px; }

@media (max-width: 560px) {
  body[data-auth-shell="true"] main#one-main { align-items: start; padding: 22px 18px; }
  .auth-card { padding: 26px 22px; }
  .auth-card h1 { font-size: 34px; }
  .auth-tabs { margin-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-primary, .auth-secondary, .auth-step-back, .auth-switch a, .auth-text-link,
  .auth-account-types label > span, .auth-input { transition: none; }
  .auth-register-form .auth-register-step.is-leaving,
  .auth-register-form .auth-register-step.is-entering,
  .auth-heading.is-leaving,
  .auth-heading.is-entering { animation: none; }
}
