:root {
  --ink: #153733;
  --muted: #617571;
  --teal: #0e756c;
  --teal-dark: #07574f;
  --teal-pale: #e9f7f4;
  --cream: #f8f6ef;
  --peach: #f5cbb5;
  --line: #d9e4e1;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% -20%,
      rgba(255, 255, 255, 0.94),
      transparent 46%
    ),
    var(--cream);
}

.ambient {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.ambient-one {
  top: 118px;
  left: -118px;
  width: 290px;
  height: 290px;
  background: rgba(163, 218, 207, 0.26);
}

.ambient-two {
  right: -120px;
  bottom: 110px;
  width: 310px;
  height: 310px;
  background: rgba(245, 203, 181, 0.3);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 154px;
  height: auto;
}

.secure-badge {
  border: 1px solid #cfdcd8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: #58706b;
  font-size: 14px;
  font-weight: 650;
  padding: 7px 11px;
}

.workspace {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 650px);
  margin: 54px auto 62px;
}

.device-watermark {
  position: absolute;
  z-index: -1;
  inset: 94px -238px auto -226px;
  height: 560px;
  pointer-events: none;
}

.device {
  position: absolute;
  margin: 0;
  opacity: 0.18;
  filter: saturate(0.3) sepia(0.08);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.device figcaption {
  margin-top: 5px;
  color: #78918c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.device-td63 {
  top: 92px;
  left: 0;
  width: 190px;
  transform: rotate(-3deg);
}

.device-ad64 {
  top: 210px;
  right: 18px;
  width: 150px;
  transform: rotate(4deg);
}

.intro {
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(36px, 7vw, 54px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.lede {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.account-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 33px 0 13px;
  padding: 12px 15px;
  border: 1px solid rgba(210, 224, 220, 0.85);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
}

.avatar {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #dff1ed;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 760;
}

.account-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.account-copy small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 14px;
}

.account-copy strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 670;
  text-overflow: ellipsis;
}

.text-link {
  color: var(--teal-dark);
  font-size: 15px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.panel {
  padding: clamp(25px, 5vw, 39px);
  border: 1px solid rgba(214, 226, 222, 0.9);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(35, 76, 68, 0.11);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 27px;
}

.step-dot {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--teal);
  color: white;
  font-size: 15px;
  font-weight: 760;
}

.card-heading h2,
.shared-card h2,
.login-card h2 {
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.card-heading p,
.shared-card > p,
.login-card > p,
.status p,
.privacy-note p {
  color: var(--muted);
  line-height: 1.55;
}

.card-heading p {
  margin-bottom: 0;
  font-size: 16px;
}

.identity-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: -5px 0 23px;
  padding: 15px;
  border: 1px solid #f0dcc7;
  border-radius: 15px;
  background: #fff8ef;
  color: #654322;
}

.warning-mark {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #bc7b38;
  border-radius: 50%;
  color: #a45f1a;
  font-size: 14px;
  font-weight: 800;
}

.identity-warning strong {
  display: block;
  margin: 2px 0 4px;
  font-size: 16px;
}

.identity-warning p {
  margin: 0;
  color: #785838;
  font-size: 15px;
  line-height: 1.55;
}

form {
  display: grid;
  gap: 10px;
}

label {
  margin-top: 7px;
  color: #294843;
  font-size: 16px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 54px;
  padding: 0 17px;
  border: 1px solid #c9d9d5;
  border-radius: 14px;
  outline: none;
  background: #fbfdfc;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.32em;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input::placeholder {
  color: #a8bab6;
}

input:focus {
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 4px rgba(14, 117, 108, 0.11);
}

input[aria-invalid="true"] {
  border-color: #c65b4e;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 78px;
}

.reveal-button {
  position: absolute;
  top: 50%;
  right: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 15px;
  font-weight: 760;
  padding: 9px;
  transform: translateY(-50%);
}

.reveal-button:hover {
  background: var(--teal-pale);
}

.field-help,
.field-error {
  margin: -3px 0 3px;
  font-size: 14px;
  line-height: 1.5;
}

.field-help {
  color: #748681;
}

.field-error {
  color: #a23a31;
  font-weight: 660;
}

.primary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: var(--teal);
  color: white;
  cursor: pointer;
  font-size: 17px;
  font-weight: 740;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(14, 117, 108, 0.2);
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-button:hover {
  background: var(--teal-dark);
  box-shadow: 0 12px 26px rgba(14, 117, 108, 0.25);
  transform: translateY(-1px);
}

.primary-button:focus-visible,
.text-link:focus-visible,
.brand:focus-visible,
.footer-brand:focus-visible {
  outline: 3px solid rgba(14, 117, 108, 0.25);
  outline-offset: 3px;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.76;
  transform: none;
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.spinner.dark {
  border-color: #c6d9d5;
  border-top-color: var(--teal);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e4ebe9;
}

.privacy-note p {
  margin: 0;
  font-size: 14px;
}

.lock {
  color: var(--teal);
  font-size: 8px;
  line-height: 20px;
}

.status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 23px;
  padding: 14px 15px;
  border-radius: 15px;
}

.status-success {
  background: #e8f7ec;
  color: #155b32;
}

.status-warning {
  background: #fff2df;
  color: #784614;
}

.status-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.status strong {
  display: block;
  margin: 1px 0 3px;
  font-size: 16px;
}

.status p {
  margin: 0;
  color: currentColor;
  font-size: 15px;
}

.shared-card {
  text-align: center;
}

.shared-illustration {
  display: grid;
  width: 78px;
  height: 78px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 26px 26px 26px 10px;
  background: #fce7db;
  color: #9b5135;
}

.shared-illustration span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.shared-card > p {
  margin-bottom: 0;
  font-size: 17px;
}

.shared-card .eyebrow {
  margin-bottom: 10px;
}

.shared-card .button-link,
.login-card .button-link {
  width: 100%;
  margin-top: 28px;
}

.shared-help {
  margin-top: 17px !important;
  color: #70827e !important;
  font-size: 14px !important;
}

.loading-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 33px;
  color: var(--muted);
}

.loading-panel p {
  margin: 0;
  font-size: 16px;
}

.login-card {
  margin-top: 33px;
  text-align: center;
}

.login-card > p {
  margin-bottom: 0;
  font-size: 17px;
}

.support-copy {
  margin: 20px auto 0;
  color: #687b76;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.support-copy a {
  color: var(--teal-dark);
  font-weight: 720;
  text-underline-offset: 3px;
}

.pass-callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 17px;
  margin-top: 17px;
  padding: 19px 20px;
  border: 1px solid #cde2de;
  border-radius: 21px;
  background: rgba(231, 247, 244, 0.86);
}

.phone-mark {
  position: relative;
  width: 35px;
  height: 53px;
  border: 2px solid var(--teal);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.phone-mark::before {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
  transform: translateX(-50%);
}

.phone-mark span {
  position: absolute;
  right: 6px;
  bottom: 7px;
  left: 6px;
  height: 25px;
  border-radius: 6px;
  background: linear-gradient(145deg, #bfe6df, #fdfcf7);
}

.pass-copy .eyebrow {
  margin-bottom: 5px;
  font-size: 12px;
}

.pass-copy h2 {
  margin-bottom: 3px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.pass-copy p:not(.eyebrow) {
  margin: 0;
  color: #607a75;
  font-size: 15px;
  line-height: 1.5;
}

.pass-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 760;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.pass-link:focus-visible {
  outline: 3px solid rgba(14, 117, 108, 0.25);
  outline-offset: 3px;
}

footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 25px 0 34px;
  border-top: 1px solid rgba(196, 211, 207, 0.75);
  color: #7c8c88;
  font-size: 13px;
}

.footer-brand {
  display: inline-flex;
  border-radius: 8px;
}

.footer-brand img {
  display: block;
  width: 92px;
  height: auto;
  opacity: 0.76;
}

.footer-copy {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 4px;
}

.footer-copy span:first-child {
  color: #5d746f;
  font-weight: 720;
}

.legal {
  width: min(100% - 40px, 680px);
  margin: 64px auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(35, 76, 68, 0.09);
}

.legal .brand {
  margin-bottom: 48px;
}

.legal h1 {
  font-size: 42px;
}

.legal p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .device-watermark {
    position: relative;
    z-index: 0;
    inset: auto;
    display: flex;
    height: auto;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 20px 0 -13px;
  }

  .device {
    position: static;
    display: flex;
    width: auto;
    align-items: center;
    gap: 7px;
    opacity: 0.26;
    transform: none;
  }

  .device img {
    width: 38px;
  }

  .device figcaption {
    margin: 0;
    font-size: 10px;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .topbar {
    width: min(100% - 28px, 1080px);
    padding: 19px 0;
  }

  .secure-badge {
    max-width: 90px;
    text-align: center;
  }

  .brand-logo {
    width: 126px;
  }

  .workspace {
    width: min(100% - 28px, 650px);
    margin-top: 37px;
  }

  .account-strip {
    align-items: center;
  }

  .text-link {
    max-width: 58px;
    text-align: right;
  }

  .panel {
    border-radius: 22px;
  }

  .identity-warning {
    padding: 14px;
  }

  .pass-callout {
    grid-template-columns: auto 1fr;
    gap: 13px;
    padding: 17px;
  }

  .pass-link {
    grid-column: 2;
    justify-self: start;
  }

  footer {
    width: min(100% - 28px, 1080px);
    gap: 14px;
    text-align: center;
  }

  .footer-brand img {
    width: 80px;
  }

  .footer-copy {
    align-items: flex-end;
    text-align: right;
  }

  .legal {
    width: min(100% - 28px, 680px);
    margin: 24px auto;
    padding: 28px;
  }

  .legal h1 {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
