* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --orange-500: #ff6a00;
  --orange-600: #f45f05;
  --orange-100: #fff2e7;
  --ink: #211f1d;
  --muted: #77716c;
  --line: #e8e4df;
  --surface: #ffffff;
  --background: #f7f4f0;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 106, 0, 0.06), transparent 28%),
    linear-gradient(135deg, #f6f2ee 0%, #fbfaf8 48%, #f4f0eb 100%);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
  width: min(1180px, calc(100% - 44px));
  min-height: min(780px, calc(100vh - 44px));
  margin: 22px auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 90px rgba(76, 53, 37, 0.13);
}

.auth-showcase {
  position: relative;
  display: flex;
  min-height: 780px;
  overflow: hidden;
  flex-direction: column;
  padding: 54px 58px 34px;
  color: #fff;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.2), transparent 27%),
    radial-gradient(circle at 88% 78%, rgba(255, 212, 170, 0.32), transparent 28%),
    linear-gradient(145deg, #ff4d08 0%, #ff6f0a 46%, #ff8a1d 100%);
}

.auth-showcase::before,
.auth-showcase::after {
  content: "";
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-showcase::before {
  width: 520px;
  height: 520px;
  top: -250px;
  right: -190px;
  background: rgba(255, 183, 117, 0.28);
}

.auth-showcase::after {
  width: 440px;
  height: 440px;
  bottom: -255px;
  left: -170px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-showcase__glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.auth-showcase__glow--top {
  top: 185px;
  right: -120px;
  width: 340px;
  height: 340px;
  background: rgba(255, 179, 86, 0.28);
}

.auth-showcase__glow--bottom {
  bottom: 40px;
  left: -130px;
  width: 300px;
  height: 300px;
  background: rgba(255, 231, 204, 0.18);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.auth-brand__mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  width: 42px;
  height: 39px;
}

.auth-brand__mark i {
  display: block;
  width: 9px;
  border-radius: 999px;
  background: currentColor;
}

.auth-brand__mark i:nth-child(1) {
  height: 18px;
}

.auth-brand__mark i:nth-child(2) {
  height: 29px;
}

.auth-brand__mark i:nth-child(3) {
  height: 39px;
}

.auth-brand--light {
  color: #fff;
}

.auth-brand__copy {
  display: grid;
  gap: 4px;
}

.auth-brand__copy strong {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.auth-brand__copy small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.23em;
  opacity: 0.82;
}

.auth-showcase__copy {
  margin-top: 84px;
  max-width: 460px;
}

.auth-showcase__eyebrow {
  display: block;
  margin-bottom: 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  opacity: 0.8;
}

.auth-showcase__copy h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.auth-showcase__copy p {
  max-width: 420px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.auth-visual {
  position: relative;
  flex: 1;
  min-height: 370px;
  margin-top: 30px;
}

.auth-phone {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 210px;
  height: 330px;
  transform: translateX(-50%) rotate(-7deg);
  padding: 13px;
  border: 3px solid rgba(255, 255, 255, 0.74);
  border-radius: 42px;
  background: linear-gradient(155deg, #fff9f3 0%, #f7e8da 100%);
  box-shadow: 0 30px 70px rgba(150, 53, 3, 0.28);
}

.auth-phone__speaker {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 50%;
  width: 56px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #eea772;
}

.auth-phone__screen {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  padding: 45px 20px 18px;
  border-radius: 31px;
  background: linear-gradient(180deg, #fffefe, #fff5ed);
  color: #4d4038;
}

.auth-phone__kicker {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #b09481;
}

.auth-phone__screen > strong {
  margin-top: 5px;
  font-size: 20px;
  color: #2f2925;
}

.auth-phone__bars {
  display: flex;
  width: 100%;
  height: 76px;
  align-items: flex-end;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}

.auth-phone__bars i {
  width: 18px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #ff9b31, #ff6209);
  box-shadow: 0 7px 15px rgba(255, 106, 0, 0.2);
}

.auth-phone__bars i:nth-child(1) { height: 28px; }
.auth-phone__bars i:nth-child(2) { height: 47px; }
.auth-phone__bars i:nth-child(3) { height: 63px; }
.auth-phone__bars i:nth-child(4) { height: 40px; }

.auth-phone__donut {
  width: 86px;
  height: 86px;
  margin-top: 16px;
  border-radius: 50%;
  background: conic-gradient(#ff6510 0 35%, #ffa039 35% 63%, #ffd0a0 63% 82%, #f5e1cf 82% 100%);
  box-shadow: inset 0 0 0 24px #fff8f2, 0 12px 26px rgba(255, 106, 0, 0.14);
}

.auth-phone__rows {
  width: 100%;
  margin-top: 18px;
}

.auth-phone__rows i {
  display: block;
  height: 7px;
  margin: 8px 0;
  border-radius: 999px;
  background: #eadfd5;
}

.auth-phone__rows i:nth-child(1) { width: 92%; }
.auth-phone__rows i:nth-child(2) { width: 68%; }
.auth-phone__rows i:nth-child(3) { width: 80%; }

.auth-mini-card {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 132px;
  min-height: 108px;
  padding: 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 24px;
  background: rgba(255, 248, 242, 0.92);
  color: #5b4435;
  box-shadow: 0 22px 45px rgba(122, 48, 6, 0.18);
  backdrop-filter: blur(10px);
}

.auth-mini-card span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #fff0e2;
  color: #ff6a00;
  font-size: 25px;
  font-weight: 800;
}

.auth-mini-card strong {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
}

.auth-mini-card--expenses {
  left: 0;
  bottom: 130px;
  transform: rotate(-8deg);
}

.auth-mini-card--goals {
  right: 0;
  bottom: 155px;
  transform: rotate(7deg);
}

.auth-mini-card--cards {
  right: 14px;
  bottom: 25px;
  min-width: 122px;
  transform: rotate(9deg);
}

.auth-visual__orbit {
  position: absolute;
  border: 3px solid rgba(255, 238, 219, 0.52);
  border-radius: 50%;
}

.auth-visual__orbit--one {
  right: -85px;
  bottom: 80px;
  width: 260px;
  height: 120px;
  transform: rotate(-17deg);
  border-color: transparent rgba(255, 239, 220, 0.54) rgba(255, 239, 220, 0.54) transparent;
}

.auth-visual__orbit--two {
  left: -90px;
  bottom: 28px;
  width: 220px;
  height: 120px;
  transform: rotate(14deg);
  border-color: rgba(255, 239, 220, 0.54) transparent transparent rgba(255, 239, 220, 0.54);
}

.auth-showcase__footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 16px;
}

.auth-showcase__footer span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.43);
}

.auth-showcase__footer span.is-active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}

.auth-panel {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
}

.auth-panel__accent {
  position: absolute;
  top: -150px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 44% 56% 63% 37%;
  background: linear-gradient(145deg, rgba(255, 117, 20, 0.5), rgba(255, 218, 184, 0.25));
  transform: rotate(18deg);
}

.auth-panel__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 64px 54px 36px;
}

.auth-mobile-brand {
  display: none;
  color: var(--orange-500);
}

.auth-panel__head {
  margin-top: 38px;
  text-align: center;
}

.auth-panel__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-500);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.auth-panel__head h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.auth-panel__head p {
  margin: 10px 0 0;
  color: #74717c;
  font-size: 15px;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 26px 0 18px;
  padding: 4px;
  border-radius: 16px;
  background: #f4f1ee;
}

.auth-mode-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #8b857f;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-mode-switch button[aria-selected="true"] {
  background: #fff;
  color: #e86008;
  box-shadow: 0 4px 14px rgba(56, 43, 33, 0.09);
}

.auth-socials {
  display: grid;
  gap: 10px;
}

.auth-social {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  min-height: 56px;
  padding: 0 15px;
  border: 1px solid #e0dcd8;
  border-radius: 16px;
  background: #fff;
  color: #2b2927;
  font-size: 14px;
  font-weight: 700;
}

.auth-social:disabled {
  opacity: 1;
  cursor: default;
}

.auth-social--apple {
  border-color: #1f1f1f;
  background: #1f1f1f;
  color: #fff;
}

.auth-social__icon {
  font-size: 18px;
}

.auth-social__icon--google {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid #ea4335;
  color: #4285f4;
  font-weight: 800;
}

.auth-social small {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: currentColor;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-social--google small {
  background: #fff2e7;
  color: #e6630b;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #928b84;
}

.auth-divider span {
  height: 1px;
  background: #e6e1dc;
}

.auth-divider small {
  font-size: 11px;
}

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

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field > span:first-child {
  color: #5f5a55;
  font-size: 11px;
  font-weight: 700;
}

.auth-field__control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid #e2ded9;
  border-radius: 16px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-field__control:focus-within {
  border-color: #ff9e5f;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.08);
}

.auth-field__control > svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin-left: 16px;
  fill: none;
  stroke: #777d8e;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-field input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #272422;
  font-size: 14px;
}

.auth-field input::placeholder {
  color: #aaa4ae;
}

.auth-password-toggle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-right: 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #777d8e;
  cursor: pointer;
}

.auth-password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.auth-password-rules {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(90deg, #fff7f0, #fffaf5);
}

.auth-password-rules span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #716a64;
  font-size: 10.5px;
}

.auth-password-rules i {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffd9bc;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.auth-password-rules span.is-valid {
  color: #3b7855;
}

.auth-password-rules span.is-valid i {
  background: #3db06e;
}

.auth-login-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #746e68;
  font-size: 11px;
}

.auth-login-extras label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-login-extras input {
  accent-color: var(--orange-500);
}

.auth-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #b3aaa2;
  font-size: 11px;
  font-weight: 700;
}

.auth-submit {
  min-height: 58px;
  margin-top: 4px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(90deg, #ff5b08, #ff7d10);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(255, 106, 0, 0.2);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.auth-submit:active {
  transform: scale(0.985);
  box-shadow: 0 9px 22px rgba(255, 106, 0, 0.18);
}

.auth-status {
  min-height: 16px;
  margin: -2px 0 0;
  color: #9b6c4d;
  font-size: 10px;
  text-align: center;
}

.auth-alternate {
  margin: 16px 0 0;
  color: #77716c;
  font-size: 12px;
  text-align: center;
}

.auth-alternate button {
  padding: 0 0 0 4px;
  border: 0;
  background: transparent;
  color: #f16008;
  font-weight: 800;
  cursor: pointer;
}

.auth-security-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 15px 16px;
  border-radius: 17px;
  background: linear-gradient(90deg, #fff6ee, #fffaf7);
}

.auth-security-note__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #ffb67d;
  border-radius: 12px;
  color: #f36a12;
  font-size: 14px;
  font-weight: 800;
}

.auth-security-note strong {
  display: block;
  font-size: 11px;
}

.auth-security-note p {
  margin: 4px 0 0;
  color: #746d67;
  font-size: 9.5px;
  line-height: 1.5;
}

.auth-legal {
  margin: 18px 20px 0;
  color: #98908a;
  font-size: 9.5px;
  line-height: 1.55;
  text-align: center;
}

.auth-legal a {
  color: #716a64;
  font-weight: 700;
  text-decoration: none;
}

body[data-auth-mode="login"] #nameField,
body[data-auth-mode="login"] #passwordRules {
  display: none;
}

body[data-auth-mode="login"] #loginExtras {
  display: flex;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  }

  .auth-showcase {
    padding-inline: 40px;
  }

  .auth-showcase__copy {
    margin-top: 66px;
  }

  .auth-showcase__copy h1 {
    font-size: 48px;
  }

  .auth-mini-card--cards {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    background: #fff;
  }

  .auth-shell {
    display: block;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-showcase {
    min-height: 250px;
    padding: 30px 24px 28px;
    border-radius: 0 0 34px 34px;
  }

  .auth-showcase > .auth-brand,
  .auth-showcase__footer,
  .auth-mini-card,
  .auth-visual__orbit {
    display: none;
  }

  .auth-showcase__copy {
    margin-top: 18px;
  }

  .auth-showcase__copy h1 {
    max-width: 380px;
    font-size: 39px;
    line-height: 1.02;
  }

  .auth-showcase__copy p {
    max-width: 360px;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.45;
  }

  .auth-visual {
    position: absolute;
    right: 7px;
    bottom: -75px;
    width: 165px;
    min-height: 220px;
    opacity: 0.95;
  }

  .auth-phone {
    right: -5px;
    left: auto;
    bottom: 0;
    width: 118px;
    height: 188px;
    transform: rotate(-9deg);
    border-radius: 25px;
    padding: 7px;
  }

  .auth-phone__speaker {
    top: 7px;
    width: 32px;
    height: 5px;
  }

  .auth-phone__screen {
    padding: 25px 9px 8px;
    border-radius: 18px;
  }

  .auth-phone__screen > strong {
    font-size: 11px;
  }

  .auth-phone__bars {
    height: 42px;
    gap: 5px;
    margin-top: 7px;
  }

  .auth-phone__bars i {
    width: 9px;
    border-radius: 4px 4px 2px 2px;
  }

  .auth-phone__bars i:nth-child(1) { height: 15px; }
  .auth-phone__bars i:nth-child(2) { height: 25px; }
  .auth-phone__bars i:nth-child(3) { height: 34px; }
  .auth-phone__bars i:nth-child(4) { height: 22px; }

  .auth-phone__donut {
    width: 47px;
    height: 47px;
    margin-top: 8px;
    box-shadow: inset 0 0 0 13px #fff8f2;
  }

  .auth-phone__rows {
    margin-top: 6px;
  }

  .auth-phone__rows i {
    height: 4px;
    margin: 4px 0;
  }

  .auth-panel {
    overflow: visible;
  }

  .auth-panel__accent {
    display: none;
  }

  .auth-panel__inner {
    width: 100%;
    padding: 34px 22px calc(28px + env(safe-area-inset-bottom));
  }

  .auth-mobile-brand {
    display: inline-flex;
    margin-bottom: 22px;
  }

  .auth-mobile-brand .auth-brand__copy strong {
    font-size: 20px;
  }

  .auth-mobile-brand .auth-brand__copy small {
    font-size: 7px;
  }

  .auth-mobile-brand .auth-brand__mark {
    width: 34px;
    height: 32px;
  }

  .auth-mobile-brand .auth-brand__mark i {
    width: 7px;
  }

  .auth-mobile-brand .auth-brand__mark i:nth-child(1) { height: 15px; }
  .auth-mobile-brand .auth-brand__mark i:nth-child(2) { height: 23px; }
  .auth-mobile-brand .auth-brand__mark i:nth-child(3) { height: 32px; }

  .auth-panel__head {
    margin-top: 0;
    text-align: left;
  }

  .auth-panel__head h2 {
    font-size: 32px;
  }

  .auth-panel__head p {
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .auth-showcase {
    min-height: 238px;
  }

  .auth-showcase__copy h1 {
    max-width: 285px;
    font-size: 34px;
  }

  .auth-showcase__copy p {
    max-width: 275px;
    padding-right: 20px;
    font-size: 12px;
  }

  .auth-social {
    grid-template-columns: 30px 1fr auto;
    font-size: 12px;
  }

  .auth-panel__inner {
    padding-inline: 18px;
  }
}

.auth-login-extras[hidden] { display: none; }
