.auth-flow-page {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 112px 20px 64px;
  background:
    radial-gradient(circle at 50% 0%, rgba(188, 42, 39, .12), transparent 34rem),
    #0a0a0a;
}

.auth-flow-card {
  width: min(100%, 520px);
  border: 1px solid #2a2a2a;
  border-radius: 18px;
  background: rgba(20, 20, 20, .96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
  overflow: hidden;
}

.auth-flow-card__body {
  padding: 34px;
}

.auth-flow-brand {
  display: block;
  margin-bottom: 28px;
  color: #f0ece4;
  text-decoration: none;
  text-align: center;
}

.auth-flow-brand__name {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.55rem;
  letter-spacing: .08em;
}

.auth-flow-brand__sub {
  display: block;
  margin-top: 2px;
  color: #777;
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  margin-bottom: 30px;
  border: 1px solid #303030;
  border-radius: 12px;
  background: #0e0e0e;
}

.auth-mode-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  color: #888;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: .09em;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.auth-mode-tabs a:hover {
  color: #eee;
}

.auth-mode-tabs a[aria-current="page"] {
  background: #bc2a27;
  color: #fff;
}

.auth-flow-kicker {
  margin: 0 0 6px;
  color: #bc2a27;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-flow-title {
  margin: 0;
  color: #f4f0e8;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  letter-spacing: .04em;
  line-height: .98;
}

.auth-flow-subtitle {
  margin: 10px 0 26px;
  color: #999;
  line-height: 1.55;
}

.auth-inline-callout,
.auth-form-alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: .88rem;
  line-height: 1.45;
}

.auth-inline-callout {
  border: 1px solid rgba(188, 42, 39, .38);
  background: rgba(188, 42, 39, .1);
  color: #ddd;
}

.auth-form-alert {
  border: 1px solid rgba(230, 82, 78, .35);
  background: rgba(230, 82, 78, .09);
  color: #f0aaa8;
}

.auth-flow-form {
  display: grid;
  gap: 18px;
}

.auth-flow-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-field {
  min-width: 0;
}

.auth-field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.auth-field label {
  margin: 0;
  color: #d6d2cc;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid #343434;
  border-radius: 9px;
  background: #0d0d0d;
  color: #f2eee7;
  padding: 0 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-field input:focus {
  border-color: #bc2a27;
  box-shadow: 0 0 0 3px rgba(188, 42, 39, .16);
}

.auth-field input[aria-invalid="true"] {
  border-color: #d94c48;
}

.auth-field-error {
  margin: 7px 0 0;
  color: #e87874;
  font-size: .78rem;
}

.auth-field-hint {
  margin: 7px 0 0;
  color: #777;
  font-size: .75rem;
  line-height: 1.4;
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 74px !important;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #aaa;
  padding: 7px 6px;
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: #fff;
}

.auth-inline-link {
  color: #aaa;
  font-size: .76rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #aaa;
  font-size: .82rem;
}

.auth-remember input {
  width: 17px;
  height: 17px;
  accent-color: #bc2a27;
}

.auth-primary-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 9px;
  background: #bc2a27;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.15rem;
  letter-spacing: .1em;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}

.auth-primary-button:hover {
  filter: brightness(1.08);
}

.auth-primary-button:active {
  transform: translateY(1px);
}

.auth-primary-button[disabled] {
  cursor: wait;
  opacity: .72;
}

.auth-flow-footer {
  margin: 24px 0 0;
  color: #777;
  font-size: .83rem;
  text-align: center;
}

.auth-flow-footer a {
  color: #ddd;
  font-weight: 600;
}

@media (max-width: 620px) {
  /* Keep the public auth header on one row. The previous 2rem wordmark forced
     Bootstrap's toggler onto a wrapped second row, making the hamburger appear
     detached above the auth card. */
  .smn-navbar > .container-xl {
    flex-wrap: nowrap;
    gap: 12px;
    padding-inline: 16px;
  }

  .smn-navbar .smn-logo {
    min-width: 0;
    max-width: calc(100% - 54px);
    margin-right: 0;
    font-size: 1.35rem;
    line-height: 1;
    white-space: nowrap;
  }

  .smn-navbar .navbar-toggler {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 6px;
  }

  .smn-navbar .navbar-toggler-icon {
    width: 1.45em;
    height: 1.45em;
  }

  .smn-navbar .navbar-collapse {
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    margin-top: 0;
  }

  .auth-flow-page {
    padding: 92px 12px 36px;
    place-items: start center;
  }

  .auth-flow-card {
    border-radius: 14px;
  }

  .auth-flow-card__body {
    padding: 26px 20px;
  }

  .auth-flow-row {
    grid-template-columns: 1fr;
  }
}
