.smart-auth-body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 85% 15%, rgba(36, 116, 232, .28), transparent 32%),
    linear-gradient(145deg, #07152d, #12315e);
}

.smart-auth-stage {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.smart-auth-stage > .flash-message {
  width: min(1060px, 100%);
  margin-bottom: 10px;
}

.smart-auth-card {
  display: grid;
  width: min(1060px, 100%);
  min-height: 540px;
  grid-template-columns: .9fr 1.1fr;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
}

.smart-auth-brand {
  min-height: 0;
  justify-content: space-between;
  padding: 30px 32px;
  background:
    radial-gradient(circle at 20% 10%, rgba(36, 116, 232, .26), transparent 34%),
    linear-gradient(160deg, #0b1f3f, #07152d);
}

.smart-brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.smart-logo-wrap {
  width: 160px;
  padding: 7px 10px;
  border-radius: 11px;
}

.smart-logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.smart-secure-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 6px 9px;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .06);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.smart-brand-copy {
  max-width: 390px;
}

.smart-auth-brand .smart-brand-copy h1 {
  max-width: 390px;
  margin: 7px 0 12px;
  font-size: clamp(30px, 3.1vw, 39px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.smart-auth-brand .smart-brand-copy p {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  line-height: 1.6;
}

.smart-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.smart-trust-row span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .70);
  font-size: 11px;
}

.smart-trust-row i {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #2474e8;
  font-size: 9px;
  font-style: normal;
}

.smart-auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 42px;
  background: #fff;
}

.smart-form-wrap {
  width: min(410px, 100%);
}

.smart-form-heading h2 {
  margin: 5px 0 5px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.smart-form-heading p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.smart-auth-form {
  gap: 14px;
}

.smart-field > span,
.smart-field > label,
.smart-label-row label {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.smart-field input {
  min-height: 46px;
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 14px;
}

.smart-primary-button,
.smart-secondary-button {
  min-height: 45px;
  border-radius: 11px;
  font-size: 14px;
}

.smart-primary-button {
  background: linear-gradient(135deg, #1859c9, #2474e8);
  box-shadow: 0 9px 22px rgba(24, 89, 201, .22);
}

.smart-secondary-button {
  border-color: #cfd9e7;
  color: #0b1f3f;
  background: #fff;
}

.smart-security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  border: 1px solid #d9e5f6;
  border-radius: 11px;
  padding: 10px 12px;
  color: #53627a;
  background: #f4f8ff;
}

.smart-security-note.compact {
  margin-top: 17px;
}

.smart-security-note > span {
  color: #1859c9;
  font-size: 17px;
  line-height: 1;
}

.smart-security-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.smart-auth-help {
  margin-top: 18px;
  font-size: 11px;
}

.smart-identity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 20px;
  border: 1px solid #dfe6ef;
  border-radius: 11px;
  padding: 10px 12px;
  background: #f8fafc;
}

.smart-identity-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #172033;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.smart-identity-row a,
.smart-text-button {
  border: 0;
  padding: 0;
  color: #1859c9;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.smart-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.smart-password-control {
  position: relative;
}

.smart-password-control input {
  padding-right: 58px;
}

.smart-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  border: 0;
  padding: 4px;
  transform: translateY(-50%);
  color: #1859c9;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.smart-divider {
  margin: 15px 0;
  font-size: 10px;
}

.smart-alternative-form {
  display: grid;
  gap: 7px;
}

.smart-alternative-form p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.smart-code-field input {
  min-height: 58px;
  text-align: center;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: .34em;
  font-variant-numeric: tabular-nums;
}

.smart-inline-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
  color: #a0a9b7;
}

.smart-inline-actions form {
  display: inline-flex;
}

.smart-skip-form {
  margin-top: 14px;
  text-align: center;
}

.smart-password-meter {
  display: grid;
  gap: 6px;
}

.smart-password-meter-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf4;
}

.smart-password-meter-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #c78316;
  transition: width .18s ease, background .18s ease;
}

.smart-password-meter small {
  color: var(--muted);
  font-size: 10px;
}

@media (max-height: 680px) and (min-width: 901px) {
  .smart-auth-stage {
    justify-content: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .smart-auth-card {
    min-height: 500px;
  }

  .smart-auth-brand,
  .smart-auth-form-panel {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .smart-auth-brand .smart-brand-copy h1 {
    font-size: 32px;
  }
}

@media (max-width: 900px) {
  .smart-auth-stage {
    justify-content: flex-start;
  }

  .smart-auth-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .smart-auth-brand {
    min-height: 205px;
    padding: 22px 24px;
  }

  .smart-brand-copy {
    margin-top: 24px;
  }

  .smart-auth-brand .smart-brand-copy h1 {
    font-size: 27px;
  }

  .smart-auth-brand .smart-brand-copy p,
  .smart-trust-row {
    display: none;
  }

  .smart-auth-form-panel {
    padding: 28px 24px;
  }
}

@media (max-width: 560px) {
  .smart-auth-stage {
    padding: 7px;
  }

  .smart-auth-card {
    border-width: 3px;
    border-radius: 14px;
  }

  .smart-auth-brand {
    min-height: 155px;
    padding: 18px;
  }

  .smart-secure-badge {
    display: none;
  }

  .smart-logo-wrap {
    width: 136px;
  }

  .smart-brand-copy {
    margin-top: 15px;
  }

  .smart-auth-brand .smart-brand-copy h1 {
    margin-bottom: 0;
    font-size: 23px;
  }

  .smart-auth-form-panel {
    padding: 24px 18px;
  }

  .smart-form-heading h2 {
    font-size: 23px;
  }
}
