.sf24-auth-shell {
  --sf24-auth-bg: #fff8f4;
  --sf24-auth-surface: #ffffff;
  --sf24-auth-blush: #fff0f3;
  --sf24-auth-warm: #f8e8df;
  --sf24-auth-text: #2b1720;
  --sf24-auth-muted: #6f5962;
  --sf24-auth-accent: #d52263;
  --sf24-auth-accent-strong: #b9164d;
  --sf24-auth-border: #ead7df;
  --sf24-auth-success: #117451;
  --sf24-auth-error: #a61432;
  --sf24-auth-focus: #6b3df5;
  min-height: 100vh;
  color: var(--sf24-auth-text);
  background: var(--sf24-auth-bg);
  font-family: "Avenir Next", Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.sf24-auth-shell .sf24-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}

.sf24-auth-shell .sf24-auth-header {
  border-bottom: 1px solid var(--sf24-auth-border);
  background: var(--sf24-auth-bg);
}

.sf24-auth-shell .sf24-auth-header__inner {
  display: flex;
  min-height: 80px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sf24-auth-shell .sf24-auth-logo,
.sf24-auth-shell .sf24-auth-header__action,
.sf24-auth-shell .sf24-auth-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.sf24-auth-shell .sf24-auth-logo {
  max-width: 210px;
}

.sf24-auth-shell .sf24-auth-logo img,
.sf24-auth-shell .sf24-auth-logo #logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.sf24-auth-shell .sf24-auth-header__action,
.sf24-auth-shell .sf24-auth-link {
  color: var(--sf24-auth-accent-strong);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.sf24-auth-shell .sf24-auth-header__action {
  gap: 8px;
  padding: 0 4px;
  text-decoration: none;
}

.sf24-auth-shell .sf24-auth-header__action:hover,
.sf24-auth-shell .sf24-auth-link:hover {
  color: var(--sf24-auth-accent);
  text-decoration: underline;
}

.sf24-auth-shell .sf24-auth-main {
  display: flex;
  min-height: calc(100vh - 80px);
  padding: 48px 18px;
  align-items: flex-start;
  justify-content: center;
}

.sf24-auth-shell .sf24-auth-stage {
  width: 100%;
  max-width: 600px;
}

.sf24-auth-shell .sf24-auth-intro {
  margin: 0 auto 28px;
  text-align: center;
}

.sf24-auth-shell .sf24-auth-kicker {
  margin: 0 0 12px;
  color: var(--sf24-auth-accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sf24-auth-shell .sf24-auth-title {
  margin: 0;
  color: var(--sf24-auth-text);
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.sf24-auth-shell .sf24-auth-subtitle {
  max-width: 460px;
  margin: 12px auto 0;
  color: var(--sf24-auth-muted);
}

.sf24-auth-shell .sf24-auth-card {
  box-sizing: border-box;
  width: 100%;
  padding: 40px;
  overflow: hidden;
  border: 1px solid var(--sf24-auth-border);
  border-top: 5px solid var(--sf24-auth-warm);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--sf24-auth-surface) 0%, var(--sf24-auth-surface) 82%, var(--sf24-auth-blush) 140%);
  box-shadow: 0 24px 70px rgba(88, 30, 53, 0.10);
}

.sf24-auth-shell .sf24-auth-messages:empty {
  display: none;
}

.sf24-auth-shell .sf24-auth-message {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid currentColor;
  border-left-width: 4px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.sf24-auth-shell .sf24-auth-message--error {
  color: var(--sf24-auth-error);
  background: var(--sf24-auth-blush);
}

.sf24-auth-shell .sf24-auth-message--info {
  color: var(--sf24-auth-muted);
  background: var(--sf24-auth-warm);
}

.sf24-auth-shell .sf24-auth-message--success {
  color: var(--sf24-auth-success);
  background: var(--sf24-auth-bg);
}

.sf24-auth-shell .sf24-auth-form {
  margin: 0;
}

.sf24-auth-shell .sf24-field {
  display: flex;
  min-width: 0;
  margin: 0 0 20px;
  flex-direction: column;
  gap: 8px;
}

.sf24-auth-shell .sf24-field__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sf24-auth-shell .sf24-field__label {
  margin: 0;
  color: var(--sf24-auth-text);
  font-size: 14px;
  font-weight: 800;
}

.sf24-auth-shell .sf24-field__heading .sf24-auth-link {
  font-size: 14px;
}

.sf24-auth-shell .sf24-field__control {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #b99aa7;
  border-radius: 12px;
  color: var(--sf24-auth-text);
  background: var(--sf24-auth-surface);
  font: inherit;
}

.sf24-auth-shell .sf24-field__control::placeholder {
  color: var(--sf24-auth-muted);
}

.sf24-auth-shell .sf24-field__control:disabled {
  color: var(--sf24-auth-muted);
  background: var(--sf24-auth-bg);
  cursor: not-allowed;
}

.sf24-auth-shell .sf24-field__control[aria-invalid="true"] {
  border: 2px solid var(--sf24-auth-error);
}

.sf24-auth-shell .sf24-field__hint {
  margin: 0;
  color: var(--sf24-auth-muted);
  font-size: 13px;
  line-height: 1.6;
}

.sf24-auth-shell .sf24-auth-primary {
  display: inline-flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid transparent;
  border-radius: 14px;
  color: #ffffff;
  background: var(--sf24-auth-accent-strong);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.sf24-auth-shell .sf24-auth-primary:hover {
  background: var(--sf24-auth-accent);
  transform: translateY(-1px);
}

.sf24-auth-shell .sf24-auth-primary:disabled,
.sf24-auth-shell .sf24-auth-primary[aria-busy="true"] {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.sf24-auth-shell .sf24-auth-secondary-action {
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--sf24-auth-border);
  text-align: center;
}

.sf24-auth-shell .sf24-auth-secondary-action p {
  margin: 0;
  color: var(--sf24-auth-muted);
  font-size: 14px;
}

.sf24-auth-shell .sf24-auth-link--prominent {
  gap: 8px;
}

.sf24-auth-shell .sf24-auth-social {
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--sf24-auth-border);
}

.sf24-auth-shell .sf24-auth-logo:focus-visible,
.sf24-auth-shell .sf24-auth-header__action:focus-visible,
.sf24-auth-shell .sf24-auth-link:focus-visible,
.sf24-auth-shell .sf24-field__control:focus-visible,
.sf24-auth-shell .sf24-auth-primary:focus-visible {
  outline: 3px solid var(--sf24-auth-focus);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .sf24-auth-shell .sf24-auth-header__inner {
    min-height: 70px;
    padding: 0 16px;
  }

  .sf24-auth-shell .sf24-auth-logo {
    max-width: 145px;
  }

  .sf24-auth-shell .sf24-auth-header__action {
    font-size: 14px;
  }

  .sf24-auth-shell .sf24-auth-main {
    min-height: calc(100vh - 70px);
    padding: 28px 16px;
  }

  .sf24-auth-shell .sf24-auth-card {
    padding: 24px 20px;
  }

  .sf24-auth-shell .sf24-auth-title {
    font-size: 32px;
  }

  .sf24-auth-shell .sf24-field__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf24-auth-shell .sf24-auth-primary {
    transition: none;
  }
}
