:root {
  --sv-login-navy-950: #43090f;
  --sv-login-navy-900: #551019;
  --sv-login-navy-800: #8f1722;
  --sv-login-red: #c91f2c;
  --sv-login-red-hover: #b81b27;
  --sv-login-focus: #c91f2c;
  --sv-login-green: #2ca66f;
  --sv-login-text: #111827;
  --sv-login-muted: #6f7c8c;
  --sv-login-line: #d9e3e9;
  --sv-login-white: #fff;
  --sv-login-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: clip;
}

body.sv-auth-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--sv-login-text);
  background: var(--sv-login-navy-950);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sv-auth-body button,
.sv-auth-body input {
  font: inherit;
}

.sv-auth-body a {
  color: inherit;
  text-decoration: none;
}

.sv-auth-body svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sv-auth-page {
  position: relative;
  min-height: 100vh;
  padding: 38px 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 17%, rgba(255, 122, 132, .22), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(255, 180, 186, .12), transparent 28%),
    linear-gradient(125deg, #42090f, #7d121c 56%, #ad1a27);
}

.sv-auth-page::before,
.sv-auth-page::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 151, 160, .13);
  border-radius: 50%;
  pointer-events: none;
}

.sv-auth-page::before {
  width: 610px;
  height: 610px;
  top: -300px;
  right: -270px;
  box-shadow:
    0 0 0 96px rgba(255, 151, 160, .025),
    0 0 0 192px rgba(255, 151, 160, .018);
}

.sv-auth-page::after {
  width: 430px;
  height: 430px;
  left: -310px;
  bottom: -260px;
  box-shadow: 0 0 0 82px rgba(201, 31, 44, .02);
}

.sv-auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 1090px);
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--sv-login-radius);
  background: var(--sv-login-white);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .31);
}

.sv-auth-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--sv-login-red), #ef5964 46%, rgba(255, 255, 255, 0) 82%);
}

.sv-auth-story {
  position: relative;
  min-width: 0;
  padding: 45px 50px 38px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--sv-login-white);
  border-right: 1px solid rgba(255, 255, 255, .1);
  background:
    linear-gradient(145deg, rgba(174, 25, 37, .99), rgba(201, 31, 44, .98)),
    var(--sv-login-navy-900);
}

.sv-auth-story::before {
  content: "";
  position: absolute;
  width: 410px;
  height: 410px;
  right: -235px;
  bottom: -230px;
  border: 1px solid rgba(255, 151, 160, .14);
  border-radius: 50%;
  box-shadow:
    0 0 0 64px rgba(255, 151, 160, .026),
    0 0 0 128px rgba(255, 151, 160, .018);
}

.sv-auth-brand {
  position: relative;
  z-index: 1;
  width: 244px;
  display: block;
}

.sv-auth-brand img {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.sv-auth-story-copy {
  position: relative;
  z-index: 1;
  margin-top: 51px;
}

.sv-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sv-auth-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e43b48;
  box-shadow: 0 0 0 4px rgba(228, 59, 72, .13);
}

.sv-auth-story-copy h2 {
  max-width: 490px;
  margin: 19px 0 17px;
  color: var(--sv-login-white);
  font-size: clamp(36px, 4vw, 49px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.sv-auth-story-copy p {
  max-width: 500px;
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.72;
}

.sv-auth-capabilities {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  display: grid;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--sv-login-radius);
  background: rgba(3, 18, 31, .24);
}

.sv-auth-capabilities > div {
  min-height: 67px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.sv-auth-capabilities > div + div {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.sv-auth-capabilities > div > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 173, 180, .09);
}

.sv-auth-capabilities svg {
  width: 19px;
  height: 19px;
}

.sv-auth-capabilities p {
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sv-auth-capabilities strong {
  color: #fff;
  font-size: 11px;
}

.sv-auth-capabilities small {
  color: #fff;
  font-size: 9px;
  line-height: 1.4;
}

.sv-auth-story-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sv-auth-story-footer img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: none;
  opacity: .72;
}

.sv-auth-panel {
  min-width: 0;
  padding: 54px 55px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .995);
}

.sv-auth-form-wrap {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.sv-auth-heading span {
  color: var(--sv-login-red);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sv-auth-heading h1 {
  margin: 8px 0 8px;
  color: #111827;
  font-size: 31px;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.sv-auth-heading p {
  margin: 0;
  color: var(--sv-login-muted);
  font-size: 12px;
  line-height: 1.55;
}

.sv-auth-alert {
  margin: 23px 0 0;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #efc9cd;
  border-radius: 7px;
  color: #94212b;
  background: #fff3f4;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.sv-auth-alert > span {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sv-login-red);
  font-weight: 900;
}

.sv-auth-form {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.sv-auth-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sv-auth-field label {
  color: #374151;
  font-size: 10px;
  font-weight: 800;
}

.sv-auth-input-shell {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  border: 1px solid #cfdbe3;
  border-radius: var(--sv-login-radius);
  background: var(--sv-login-white);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.sv-auth-input-shell:focus-within {
  border-color: var(--sv-login-focus);
  box-shadow: 0 0 0 3px rgba(201, 31, 44, .11);
}

.sv-auth-field-icon {
  position: absolute;
  width: 42px;
  inset: 0 auto 0 0;
  display: grid;
  place-items: center;
  color: #8795a5;
  pointer-events: none;
}

.sv-auth-field-icon svg {
  width: 18px;
  height: 18px;
}

.sv-auth-input-shell:focus-within .sv-auth-field-icon {
  color: var(--sv-login-focus);
}

.sv-auth-input-shell input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 48px;
  min-width: 0;
  margin: 0;
  padding: 0 13px 0 42px;
  border: 0;
  border-radius: var(--sv-login-radius);
  outline: 0;
  color: var(--sv-login-text);
  background: transparent;
  background-image: none;
  box-shadow: none;
  font-size: 13px;
  text-shadow: none;
}

.sv-auth-input-shell input::placeholder {
  color: #98a4b1;
}

.sv-auth-input-shell.has-password-toggle input {
  padding-right: 48px;
}

.sv-auth-password-toggle {
  position: absolute;
  width: 36px;
  height: 36px;
  top: 50%;
  right: 5px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--sv-login-muted);
  outline: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.sv-auth-password-toggle:hover {
  color: var(--sv-login-navy-800);
  background: #eef4f7;
}

.sv-auth-password-toggle:focus-visible {
  color: var(--sv-login-navy-800);
  box-shadow: 0 0 0 3px rgba(201, 31, 44, .14);
}

.sv-auth-password-toggle svg {
  width: 18px;
  height: 18px;
}

.sv-auth-password-closed {
  display: none;
}

.sv-auth-password-toggle.is-visible .sv-auth-password-open {
  display: none;
}

.sv-auth-password-toggle.is-visible .sv-auth-password-closed {
  display: block;
}

.sv-auth-submit {
  width: 100%;
  min-height: 49px;
  margin-top: 4px;
  padding: 0 17px 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--sv-login-red);
  border-radius: 7px;
  color: #fff;
  background: var(--sv-login-red);
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.sv-auth-submit:hover {
  border-color: var(--sv-login-red-hover);
  background: var(--sv-login-red-hover);
}

.sv-auth-submit:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(201, 31, 44, .18);
}

.sv-auth-submit svg {
  width: 18px;
  height: 18px;
}

.sv-auth-trust {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dce9e4;
  border-radius: var(--sv-login-radius);
  color: #376254;
  background: #f1f8f5;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.45;
}

.sv-auth-trust svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--sv-login-green);
}

.sv-auth-back {
  justify-self: center;
  color: var(--sv-login-muted);
  font-size: 10px;
  font-weight: 800;
}

.sv-auth-back:hover {
  color: var(--sv-login-red);
}

.sv-auth-setup {
  min-width: 0;
  padding: 15px;
  display: grid;
  justify-items: center;
  border: 1px solid var(--sv-login-line);
  border-radius: var(--sv-login-radius);
  background: #f7fafb;
}

.sv-auth-setup ol {
  width: 100%;
  margin: 0 0 12px;
  padding-left: 20px;
  color: #415166;
  font-size: 10px;
  line-height: 1.55;
}

.sv-auth-setup img {
  width: 168px;
  max-width: 100%;
  height: auto;
  padding: 5px;
  border: 1px solid #dfe7ed;
  border-radius: var(--sv-login-radius);
  background: #fff;
}

.sv-auth-setup > span {
  margin-top: 10px;
  color: var(--sv-login-muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sv-auth-setup > strong {
  max-width: 100%;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--sv-login-navy-900);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-align: center;
}

.sv-auth-code-shell input {
  height: 50px;
  padding: 0 14px;
  color: var(--sv-login-navy-900);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: .32em;
  text-align: center;
}

.sv-auth-panel-footer {
  margin-top: 27px;
  padding-top: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #e0e7ec;
  color: var(--sv-login-muted);
}

.sv-auth-panel-footer > span {
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.sv-auth-security {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #111827;
  font-size: 9px;
  font-weight: 800;
}

.sv-auth-security svg {
  width: 15px;
  height: 15px;
  color: var(--sv-login-green);
}

.sv-auth-page.is-authenticator {
  padding-block: 24px;
  overflow-y: auto;
}

.sv-auth-page.is-authenticator .sv-auth-form {
  gap: 16px;
}

@media (max-width: 900px) {
  .sv-auth-page {
    padding: 28px 20px;
    overflow-y: auto;
  }

  .sv-auth-card {
    width: min(100%, 680px);
    grid-template-columns: 1fr;
  }

  .sv-auth-story {
    min-height: 0;
    padding: 33px 38px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .sv-auth-brand {
    width: 215px;
  }

  .sv-auth-story-copy {
    margin-top: 27px;
  }

  .sv-auth-story-copy h2 {
    max-width: 560px;
    font-size: 35px;
  }

  .sv-auth-capabilities {
    grid-template-columns: 1fr 1fr;
  }

  .sv-auth-capabilities > div + div {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, .1);
  }

  .sv-auth-story-footer {
    margin-top: 27px;
  }

  .sv-auth-panel {
    padding: 42px 38px;
  }
}

@media (max-width: 600px) {
  .sv-auth-page {
    display: block;
    padding: 12px;
  }

  .sv-auth-card {
    min-height: 0;
  }

  .sv-auth-story {
    padding: 25px 23px;
  }

  .sv-auth-brand {
    width: 190px;
  }

  .sv-auth-brand img {
    height: 48px;
  }

  .sv-auth-story-copy {
    margin-top: 19px;
  }

  .sv-auth-story-copy h2 {
    margin: 14px 0 11px;
    font-size: 30px;
  }

  .sv-auth-story-copy p {
    font-size: 12px;
  }

  .sv-auth-capabilities {
    margin-top: 23px;
    grid-template-columns: 1fr;
  }

  .sv-auth-capabilities > div + div {
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-left: 0;
  }

  .sv-auth-story-footer {
    display: none;
  }

  .sv-auth-panel {
    padding: 32px 23px;
  }

  .sv-auth-heading h1 {
    font-size: 27px;
  }

  .sv-auth-panel-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .sv-auth-page.is-authenticator .sv-auth-story {
    padding: 16px 23px;
  }

  .sv-auth-page.is-authenticator .sv-auth-card {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    grid-template-columns: minmax(0, 1fr);
  }

  .sv-auth-page.is-authenticator .sv-auth-panel,
  .sv-auth-page.is-authenticator .sv-auth-form-wrap,
  .sv-auth-page.is-authenticator .sv-auth-form,
  .sv-auth-page.is-authenticator .sv-auth-setup {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .sv-auth-page.is-authenticator .sv-auth-brand {
    width: 172px;
  }

  .sv-auth-page.is-authenticator .sv-auth-brand img {
    height: 42px;
  }

  .sv-auth-page.is-authenticator .sv-auth-story-copy,
  .sv-auth-page.is-authenticator .sv-auth-capabilities,
  .sv-auth-page.is-authenticator .sv-auth-story-footer {
    display: none;
  }

  .sv-auth-page.is-authenticator .sv-auth-panel {
    padding: 27px 20px;
    overflow: hidden;
  }

  .sv-auth-page.is-authenticator .sv-auth-form-wrap {
    max-width: calc(100vw - 66px);
  }

  .sv-auth-page.is-authenticator .sv-auth-heading h1 {
    font-size: 24px;
  }

  .sv-auth-setup img {
    width: 154px;
  }
}

@media (max-height: 740px) and (min-width: 901px) {
  .sv-auth-page {
    padding-block: 24px;
  }

  .sv-auth-card {
    min-height: 600px;
  }

  .sv-auth-story {
    padding-block: 38px 32px;
  }

  .sv-auth-story-copy {
    margin-top: 38px;
  }

  .sv-auth-panel {
    padding-block: 43px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-auth-input-shell,
  .sv-auth-password-toggle,
  .sv-auth-submit {
    transition: none;
  }
}
