.sf-auth-access-panel {
  --sf-auth-bg: color-mix(in srgb, var(--surface-muted) 16%, black 84%);
  --sf-auth-field: color-mix(in srgb, var(--surface-card) 18%, black 82%);
  --sf-auth-text: color-mix(in srgb, var(--brand-contrast) 90%, white 10%);
  --sf-auth-muted: color-mix(in srgb, var(--text-secondary) 72%, white 28%);
  --sf-auth-accent: color-mix(in srgb, var(--brand-primary) 42%, lime 58%);
  --sf-auth-badge: color-mix(in srgb, var(--brand-primary) 18%, tomato 82%);
  background: var(--sf-auth-bg);
  color: var(--sf-auth-text);
  padding: clamp(1.6rem, 4vw, 3.25rem) clamp(1rem, 4vw, 5rem);
}

.sf-auth-access-panel__inner {
  width: min(100%, 50rem);
  margin: 0 auto;
}

.sf-auth-access-panel__title {
  margin: 0 0 clamp(2.3rem, 6vw, 4.75rem);
  color: var(--sf-auth-text);
  font-size: clamp(2.3rem, 4.4vw, 4rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
  text-align: center;
}

.sf-auth-access-panel__intro {
  max-width: 35rem;
  margin: -3rem auto 2rem;
  color: var(--sf-auth-muted);
  text-align: center;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
}

.sf-auth-access-panel__mock {
  display: grid;
  gap: clamp(1.15rem, 3vw, 2.5rem);
}

.sf-auth-access-panel__field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: clamp(4.6rem, 8vw, 6.1rem);
  padding: 0 clamp(1.2rem, 3vw, 2rem);
  border-radius: 1.15rem;
  background: var(--sf-auth-field);
  color: var(--sf-auth-muted);
}

.sf-auth-access-panel__placeholder {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.2;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sf-auth-access-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.55rem, 3vw, 2rem);
  height: clamp(1.55rem, 3vw, 2rem);
  color: var(--sf-auth-muted);
  flex: 0 0 auto;
}

.sf-auth-access-panel__icon svg,
.sf-auth-access-panel__step-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.sf-auth-access-panel__agreement {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  color: var(--sf-auth-text);
  font-size: clamp(1.05rem, 2vw, 1.7rem);
  line-height: 1.4;
  font-weight: 650;
}

.sf-auth-access-panel__box {
  width: 1.55rem;
  height: 1.55rem;
  margin-top: .18em;
  border: .16rem solid var(--sf-auth-muted);
  border-radius: .25rem;
  background: color-mix(in srgb, white 92%, var(--surface-muted) 8%);
  box-shadow: inset 0 0 0 .13rem color-mix(in srgb, var(--surface-card) 20%, transparent 80%);
}

.sf-auth-access-panel__agreement-text {
  min-width: 0;
}

.sf-auth-access-panel__agreement a,
.sf-auth-access-panel__switch a {
  color: var(--sf-auth-accent);
  text-decoration: none;
  font-weight: 800;
}

.sf-auth-access-panel__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(4.4rem, 8vw, 6.4rem);
  width: 100%;
  padding: .9rem 1.5rem;
  border-radius: 1.15rem;
  background: var(--sf-auth-accent);
  color: color-mix(in srgb, var(--surface-card) 10%, black 90%);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.sf-auth-access-panel__cta:focus-visible,
.sf-auth-access-panel__agreement a:focus-visible,
.sf-auth-access-panel__switch a:focus-visible {
  outline: .2rem solid var(--brand-contrast);
  outline-offset: .18rem;
}

.sf-auth-access-panel__badge {
  position: absolute;
  right: 1.25rem;
  top: -.65rem;
  min-width: 4.7rem;
  padding: .38rem .75rem;
  border-radius: 999px;
  background: var(--sf-auth-badge);
  color: white;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  line-height: 1;
  font-weight: 850;
}

.sf-auth-access-panel__switch {
  margin: clamp(1.7rem, 4vw, 3rem) 0 0;
  color: var(--sf-auth-muted);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.35;
  font-weight: 750;
  text-align: center;
}

.sf-auth-access-panel__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin: clamp(2rem, 4vw, 4rem) 0 0;
  padding: clamp(1.6rem, 4vw, 3rem) 0 0;
  border-top: .08rem solid color-mix(in srgb, var(--border-color) 35%, transparent 65%);
  list-style: none;
}

.sf-auth-access-panel__step {
  display: grid;
  justify-items: center;
  gap: .85rem;
  min-width: 0;
  color: var(--sf-auth-accent);
  font-size: clamp(1rem, 2vw, 1.55rem);
  line-height: 1.15;
  font-weight: 850;
  text-align: center;
  text-transform: none;
}

.sf-auth-access-panel__step-icon {
  display: inline-flex;
  width: clamp(1.9rem, 3.6vw, 2.4rem);
  height: clamp(1.9rem, 3.6vw, 2.4rem);
  color: var(--sf-auth-accent);
}

.sf-auth-access-panel--compact .sf-auth-access-panel__title {
  margin-bottom: 2rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.sf-auth-access-panel--compact .sf-auth-access-panel__mock {
  gap: 1rem;
}

.sf-auth-access-panel--compact .sf-auth-access-panel__field,
.sf-auth-access-panel--compact .sf-auth-access-panel__cta {
  min-height: 4.25rem;
}

@media (max-width: 36rem) {
  .sf-auth-access-panel {
    padding-inline: 1rem;
  }

  .sf-auth-access-panel__title {
    margin-bottom: 2rem;
  }

  .sf-auth-access-panel__agreement {
    gap: .75rem;
  }

  .sf-auth-access-panel__badge {
    right: .8rem;
  }

  .sf-auth-access-panel__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Auth component contract v1.2.0: compact immutable geometry; theme only through variables. */
[data-component-id="login-access-panel"],
[data-component-id="registration-access-panel"] {
  --auth-surface: #09262a;
  --auth-field: #10383a;
  --auth-text: #f7fbff;
  --auth-muted: #c9d5e2;
  --auth-accent: #ffd451;
  --auth-accent-text: #071d38;
  --auth-border: rgba(255, 212, 81, 0.28);
  box-sizing: border-box;
  width: min(calc(100% - 32px), 520px);
  margin: 24px auto 32px;
  padding: 24px;
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  background: var(--auth-surface);
  color: var(--auth-text);
  isolation: isolate;
  overflow: hidden;
}

[data-component-id="login-access-panel"] *,
[data-component-id="registration-access-panel"] * {
  box-sizing: border-box;
}

[data-component-id="login-access-panel"] .sf-auth-access-panel__inner,
[data-component-id="registration-access-panel"] .sf-auth-access-panel__inner {
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
}

[data-component-id="login-access-panel"] .sf-auth-access-panel__title,
[data-component-id="registration-access-panel"] .sf-auth-access-panel__title {
  margin: 0 0 8px;
  padding: 0;
  color: var(--auth-text);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  font-weight: 850;
  text-align: center;
}

[data-component-id="login-access-panel"] .sf-auth-access-panel__intro,
[data-component-id="registration-access-panel"] .sf-auth-access-panel__intro {
  max-width: 440px;
  margin: 0 auto 16px;
  padding: 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

[data-component-id="login-access-panel"] .sf-auth-access-panel__mock,
[data-component-id="registration-access-panel"] .sf-auth-access-panel__mock {
  display: grid;
  gap: 12px;
}

[data-component-id="login-access-panel"] .sf-auth-access-panel__field,
[data-component-id="registration-access-panel"] .sf-auth-access-panel__field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: var(--auth-field);
  color: var(--auth-muted);
}

[data-component-id="login-access-panel"] .sf-auth-access-panel__placeholder,
[data-component-id="registration-access-panel"] .sf-auth-access-panel__placeholder {
  overflow: hidden;
  color: inherit;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

[data-component-id="login-access-panel"] .sf-auth-access-panel__icon,
[data-component-id="registration-access-panel"] .sf-auth-access-panel__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--auth-accent);
  font-size: 18px;
  line-height: 1;
}

[data-component-id="login-access-panel"] .sf-auth-access-panel__cta,
[data-component-id="registration-access-panel"] .sf-auth-access-panel__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--auth-accent) !important;
  color: var(--auth-accent-text) !important;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

[data-component-id="login-access-panel"] .sf-auth-access-panel__switch,
[data-component-id="registration-access-panel"] .sf-auth-access-panel__switch {
  margin: 14px 0 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 650;
  text-align: center;
}

[data-component-id="login-access-panel"] .sf-auth-access-panel__switch a,
[data-component-id="registration-access-panel"] .sf-auth-access-panel__switch a {
  color: var(--auth-accent);
  font-weight: 800;
}

@media (max-width: 520px) {
  [data-component-id="login-access-panel"],
  [data-component-id="registration-access-panel"] {
    width: min(calc(100% - 20px), 520px);
    margin-block: 18px 26px;
    padding: 18px 14px;
  }
}
