@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --ink-primary: #0f172a;
  --ink-secondary: #4b5565;
  --ink-muted: #7b8496;
  --line: #e8edf4;
  --panel: rgba(255, 255, 255, 0.86);
  --orange: #ff4f12;
  --orange-dark: #e93f00;
  --orange-soft: #fff1e9;
  --green: #2f9b64;
  --green-soft: #edf8f1;
  --shadow-soft: 0 26px 70px rgba(15, 23, 42, 0.11);
  --shadow-card: 0 18px 44px rgba(247, 112, 42, 0.12);
}

/* Tighten home page center spacing. */
.signin-shell {
  grid-template-columns: minmax(460px, 500px) minmax(420px, 1fr) !important;
  gap: 18px !important;
}

.brand-panel {
  max-width: 500px !important;
}

/* ATM Credit blue/light-blue brand theme override. */
:root {
  --atm-blue: #075bb5;
  --atm-blue-dark: #044a96;
  --atm-sky: #56c3ff;
  --atm-sky-soft: #e8f6ff;
  --atm-line: #b9e3ff;
  --orange: var(--atm-blue);
  --orange-dark: var(--atm-blue-dark);
  --orange-soft: var(--atm-sky-soft);
  --green: var(--atm-blue);
  --green-soft: var(--atm-sky-soft);
  --shadow-card: 0 18px 44px rgba(7, 91, 181, 0.12);
}

html,
body {
  background:
    radial-gradient(circle at 92% 22%, rgba(86, 195, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f4fbff 46%, #eaf7ff 100%) !important;
}

.brand-mark {
  background: #ffffff !important;
  border-color: var(--atm-line) !important;
  box-shadow: 0 12px 24px rgba(7, 91, 181, 0.12) !important;
}

.main-nav a.active,
.main-nav a:hover,
.hero-content h1 span,
.support-row a,
.terms a,
.resend-btn,
.back-to-step1 {
  color: var(--atm-blue) !important;
}

.main-nav a.active::after {
  background: linear-gradient(90deg, var(--atm-blue), var(--atm-sky)) !important;
}

.icon-bubble,
.step-badge,
.trust-icon {
  background: var(--atm-sky-soft) !important;
  color: var(--atm-blue) !important;
}

.loan-card {
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(155deg, var(--atm-blue) 0%, #1688df 48%, var(--atm-sky) 100%) !important;
  box-shadow: 0 20px 42px rgba(7, 91, 181, 0.22) !important;
}

.popular-badge {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.phone-input-wrapper input:focus,
.otp-box:focus {
  border-color: var(--atm-blue) !important;
  box-shadow: 0 0 0 4px rgba(86, 195, 255, 0.18) !important;
}

.send-button,
.verify-button {
  background: linear-gradient(135deg, var(--atm-blue), var(--atm-sky)) !important;
  box-shadow: 0 16px 30px rgba(7, 91, 181, 0.22) !important;
}

.send-button:hover:not(:disabled),
.verify-button:hover:not(:disabled) {
  box-shadow: 0 20px 36px rgba(7, 91, 181, 0.28) !important;
}

.page-loader-card img {
  box-shadow: 0 16px 36px rgba(7, 91, 181, 0.2) !important;
}

.page-loader-card span,
.spinner {
  border-color: #dff2ff !important;
  border-top-color: var(--atm-blue) !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: var(--font-primary);
  color: var(--ink-primary);
  background:
    radial-gradient(circle at 92% 22%, rgba(255, 126, 52, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fbfcf8 45%, #f4fbf2 100%);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button,
input {
  font: inherit;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #ffffff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-card {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.page-loader-card img {
  width: 220px;
  height: 220px;
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(255, 79, 18, 0.22);
}

.page-loader-card span {
  width: 52px;
  height: 52px;
  border: 3px solid #ffedd5;
  border-top-color: #ff6b1a;
  border-radius: 50%;
  animation: loaderSpin 0.8s linear infinite;
}

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

.page-shell {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.page-shell::before {
  position: absolute;
  top: 80px;
  right: 0;
  width: 360px;
  height: 300px;
  background:
    radial-gradient(circle, rgba(255, 116, 39, 0.22) 1.6px, transparent 2px) 0 0 / 22px 22px,
    linear-gradient(135deg, rgba(255, 247, 240, 0.9), rgba(235, 248, 232, 0.7));
  clip-path: ellipse(70% 52% at 74% 30%);
  content: "";
  opacity: 0.65;
  pointer-events: none;
}

.page-shell::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 32vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(236, 248, 232, 0.78)),
    repeating-linear-gradient(102deg, rgba(47, 155, 100, 0.14) 0 2px, transparent 2px 14px);
  content: "";
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 8px clamp(24px, 4vw, 58px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.brand-row,
.brand-copy {
  display: flex;
  align-items: center;
}

.brand-row {
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, #ff6b1f, #fb3500);
  box-shadow: 0 16px 28px rgba(255, 79, 18, 0.23);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 750;
  line-height: 1;
  color: #111a38;
}

.brand-copy small {
  color: #526077;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: #485369;
  font-size: 13px;
  font-weight: 600;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--orange);
}

.main-nav a.active::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  content: "";
}

.signin-shell {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: start;
  grid-template-columns: minmax(460px, 0.84fr) minmax(420px, 1fr);
  gap: clamp(24px, 3vw, 46px);
  max-width: 1280px;
  height: calc(100vh - 66px);
  min-height: 0;
  margin: 0 auto;
  padding: 22px clamp(24px, 4vw, 58px) 68px;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  min-height: 0;
  width: 100%;
  max-width: 460px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 2.9vw, 40px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: 0;
  color: #111827;
}

.hero-content h1 span {
  color: var(--orange);
}

.hero-copy {
  max-width: 430px;
  margin-top: 8px;
  color: #5e687c;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 400;
  line-height: 1.55;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  max-width: 460px;
  padding: 6px;
  border: 1px solid rgba(232, 237, 244, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.benefit-item {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
  padding: 3px;
  overflow: hidden;
}

.benefit-item strong,
.loan-meta-grid strong {
  display: block;
  color: #111827;
  overflow: hidden;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.benefit-item small,
.loan-meta-grid small {
  display: block;
  margin-top: 3px;
  color: #5c667a;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-bubble {
  display: inline-grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 800;
}

.icon-bubble svg {
  width: 11px;
  height: 11px;
}

.icon-bubble.small {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.icon-bubble.small svg {
  width: 13px;
  height: 13px;
}

.loan-card,
.login-card {
  border: 1px solid rgba(232, 237, 244, 0.86);
  background: var(--panel);
  backdrop-filter: blur(22px);
}

.loan-card {
  position: relative;
  display: block;
  max-width: 460px;
  height: 220px;
  min-height: 0;
  overflow: hidden;
  padding: 20px 22px;
  border: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(155deg, #ff7d26 0%, #ff4d11 46%, #ff7f2f 100%);
  box-shadow: 0 20px 42px rgba(255, 79, 18, 0.22);
  color: #ffffff;
}

.loan-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 49%, rgba(255, 255, 255, 0.08) 49% 100%),
    radial-gradient(circle at 102% 100%, rgba(255, 255, 255, 0.16), transparent 38%);
  content: "";
  pointer-events: none;
}

.loan-card::after {
  position: absolute;
  inset: -60% -25% -60% auto;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  content: "";
  pointer-events: none;
  transform: rotate(22deg);
  animation: cardSheen 4.2s ease-in-out infinite;
}

@keyframes cardSheen {
  0%, 45% {
    transform: translateX(0) rotate(22deg);
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  100% {
    transform: translateX(-520px) rotate(22deg);
    opacity: 0;
  }
}

.loan-card-copy,
.wallet-visual {
  position: relative;
  z-index: 1;
}

.loan-card-copy {
  position: relative;
  z-index: 3;
  max-width: 320px;
}

.loan-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.loan-title-row h2 {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 16px;
  font-weight: 750;
}

.popular-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--orange);
  color: #ffffff;
  font-size: 11px;
  font-weight: 750;
}

.popular-badge::before {
  content: "*";
  font-size: 15px;
  line-height: 0;
}

.loan-card-copy p {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.loan-amount {
  display: block;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 0;
}

.loan-meta-grid {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.loan-meta-grid > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 6px;
  align-items: center;
  min-width: 0;
  color: #ffffff;
}

.loan-meta-grid .icon-bubble {
  grid-row: span 2;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.loan-card .loan-meta-grid strong,
.loan-card .loan-meta-grid small {
  color: #ffffff;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.loan-card .loan-meta-grid strong {
  font-size: 11px;
}

.loan-card .loan-meta-grid small {
  font-size: 9px;
  opacity: 0.82;
}

.wallet-visual {
  position: absolute;
  right: 14px;
  top: 36px;
  z-index: 1;
  width: 148px;
  height: 116px;
  min-height: 0;
  transform: none;
  overflow: hidden;
}

.wallet-visual img {
  display: block;
  width: 202px;
  height: 286px;
  margin-top: -156px;
  margin-left: -35px;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 20px 18px rgba(121, 45, 0, 0.24));
  animation: walletFloat 3.6s ease-in-out infinite;
}

@keyframes walletFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.trust-strip svg,
.send-button svg,
.verify-button svg,
.back-to-step1 svg {
  width: 17px;
  height: 17px;
}

.send-button:hover:not(:disabled),
.verify-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.form-panel {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.trust-strip {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: min(1040px, calc(100% - 48px));
  transform: translateX(-50%);
  pointer-events: none;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  padding: 9px 18px;
  border: 1px solid rgba(232, 237, 244, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.trust-metrics {
  flex: 1 1 auto;
  justify-content: space-between;
}

.trust-security {
  flex: 0 0 auto;
  gap: 30px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.trust-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #fff1e9;
  color: var(--orange);
}

.trust-icon.green {
  background: #eefaf2;
  color: #21a463;
}

.trust-icon svg {
  width: 14px;
  height: 14px;
}

.trust-item strong,
.trust-item small {
  display: block;
  overflow: hidden;
  max-width: 150px;
  text-overflow: ellipsis;
}

.trust-item strong {
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.trust-item small {
  margin-top: 2px;
  color: #667085;
  font-size: 8px;
  font-weight: 600;
}

.login-card {
  width: 100%;
  max-width: 540px;
  min-height: 0;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.form-slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.form-slider {
  display: flex;
  align-items: flex-start;
  width: 200%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-pane {
  width: 50%;
  flex-shrink: 0;
  transition: opacity 0.35s ease;
}

.step-pane.inactive {
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #fff2e9;
  color: var(--orange);
  font-size: 11px;
  font-weight: 750;
}

.login-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.75vw, 25px);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: 0;
}

.login-heading p {
  max-width: 470px;
  margin: 10px 0 22px;
  color: #596377;
  font-size: 13px;
  line-height: 1.55;
}

.otp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-label {
  color: #111827;
  font-size: 11px;
  font-weight: 750;
}

.phone-input-wrapper {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
}

.country-select,
.phone-input-wrapper input,
.otp-box {
  border: 1.5px solid #dce2ea;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.country-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
}

.country-select svg {
  width: 16px;
  height: 16px;
}

.phone-input-wrapper input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
}

.phone-input-wrapper input::placeholder {
  color: #6f788b;
  font-weight: 500;
}

.phone-input-wrapper input:focus,
.otp-box:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 79, 18, 0.1);
}

.send-button,
.verify-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff641d, #ff3c00);
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 16px 30px rgba(255, 79, 18, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.verify-button {
  background: linear-gradient(135deg, #2ea66e, #167c4c);
  box-shadow: 0 16px 30px rgba(47, 155, 100, 0.2);
}

.send-button:disabled,
.verify-button:disabled {
  background: #e2e8f0;
  color: #95a0b2;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.send-button:hover:not(:disabled),
.verify-button:hover:not(:disabled) {
  box-shadow: 0 20px 36px rgba(255, 79, 18, 0.28);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.send-button:hover .btn-arrow {
  transform: translateX(4px);
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.is-loading span,
.is-loading svg {
  display: none;
}

.is-loading .spinner {
  display: block;
}

.otp-boxes-wrapper {
  margin-bottom: 4px;
}

.otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(36px, 1fr));
  gap: 8px;
}

.otp-box {
  width: 100%;
  height: 50px;
  border-radius: 7px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
}

.otp-display-desc strong {
  color: #111827;
}

.otp-timer-row,
.support-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #586276;
  font-size: 12px;
}

.otp-timer-row {
  margin-top: 12px;
}

.timer-text strong {
  color: #111827;
}

.resend-btn,
.back-to-step1 {
  border: 0;
  background: transparent;
  color: var(--orange);
  cursor: pointer;
  font-weight: 750;
}

.resend-btn:disabled {
  color: #a6afbf;
  cursor: not-allowed;
}

.back-to-step1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 16px;
  color: #4b5565;
}

.support-row {
  position: relative;
  margin-top: 30px;
  padding-top: 22px;
}

.support-row::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #e4e8ef;
  content: "";
}

.support-row::after {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 34px;
  margin-left: -17px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  content: "or";
  text-align: center;
  font-size: 13px;
  font-weight: 750;
}

.support-row a,
.terms a {
  color: var(--orange);
  font-weight: 750;
}

.terms {
  max-width: 430px;
  margin: 30px auto 0;
  color: #647084;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}

.toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 48px));
  padding: 13px 17px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
  font-size: 13px;
  font-weight: 700;
  animation: slideIn 0.25s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .signin-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 66px);
    gap: 32px;
  }

  .brand-panel,
  .loan-card,
  .login-card {
    max-width: 760px;
    width: 100%;
  }

  .form-panel {
    justify-content: flex-start;
  }

  .trust-strip {
    position: static;
    width: 100%;
    margin-top: 6px;
    transform: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    flex-direction: column;
    height: auto;
    gap: 16px;
    min-height: auto;
  }

  .brand-row {
    justify-content: center;
  }

  .brand-copy {
    align-items: center;
    text-align: center;
  }

  .main-nav {
    display: none;
  }

  .signin-shell {
    padding-top: 22px;
  }

  .benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .loan-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .loan-card {
    height: 220px;
    padding: 20px 22px;
  }

  .wallet-visual {
    width: 132px;
    height: 116px;
  }

  .phone-input-wrapper {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .brand-copy small,
  .main-nav a {
    font-size: 13px;
  }

  .signin-shell {
    padding-inline: 18px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .benefit-item {
    align-items: flex-start;
  }

  .login-card {
    min-height: auto;
    padding: 20px 16px;
    border-radius: 8px;
  }

  .phone-input-wrapper {
    grid-template-columns: 1fr;
  }

  .country-select {
    justify-content: space-between;
    padding: 0 18px;
  }

  .otp-boxes {
    gap: 6px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .otp-box {
    height: 50px;
    font-size: 18px;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip {
    flex-direction: column;
    gap: 10px;
  }

  .trust-card {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .trust-security {
    justify-content: space-between;
  }

  .loan-meta-grid {
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding-right: 0;
  }

  .wallet-visual {
    width: 100px;
    height: 108px;
  }

}

/* Mobile and tablet layout hardening */
@media (max-width: 1180px) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
  }

  body {
    overflow-y: auto;
  }

  .page-shell {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
  }

  .page-shell::before {
    right: -120px;
  }

  .signin-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 820px;
    min-height: auto;
    padding: 22px 20px 34px;
  }

  .brand-panel,
  .form-panel,
  .trust-strip {
    width: 100%;
    max-width: none;
  }

  .form-panel {
    display: flex;
    justify-content: center;
  }

  .login-card {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 14px;
    gap: 10px;
  }

  .brand-row {
    gap: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .main-nav {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 24px;
    padding-bottom: 2px;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .signin-shell {
    gap: 18px;
    padding: 16px 12px 28px;
  }

  .hero-content h1 {
    margin-top: 10px;
    text-align: center;
    font-size: 26px;
    line-height: 1.08;
  }

  .hero-content {
    width: 100%;
  }

  .hero-copy {
    display: none;
  }

  .benefit-grid {
    display: none;
  }

  .benefit-item {
    gap: 7px;
    padding: 6px;
  }

  .benefit-item strong,
  .loan-meta-grid strong {
    font-size: 10px;
  }

  .benefit-item small,
  .loan-meta-grid small {
    font-size: 8px;
  }

  .loan-card {
    display: none;
  }

  .loan-card-copy {
    max-width: calc(100% - 92px);
  }

  .loan-title-row {
    margin-bottom: 10px;
  }

  .loan-amount {
    font-size: clamp(18px, 6vw, 24px);
    line-height: 1.2;
  }

  .wallet-visual {
    top: 42px;
    right: 8px;
    width: 96px;
    height: 92px;
  }

  .loan-meta-grid {
    left: 16px;
    right: 16px;
    bottom: 16px;
    gap: 6px;
  }

  .loan-meta-grid > div {
    column-gap: 5px;
  }

  .icon-bubble.small {
    width: 24px;
    height: 24px;
  }

  .login-card {
    padding: 18px 14px;
  }

  .login-heading p {
    margin-bottom: 16px;
  }

  .support-row,
  .terms {
    text-align: center;
  }

  .trust-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .trust-card {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-security {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .signin-shell {
    padding-inline: 10px;
  }

  .hero-content h1 {
    font-size: 23px;
  }

  .loan-card {
    padding: 14px;
  }

  .loan-card-copy {
    max-width: calc(100% - 78px);
  }

  .wallet-visual {
    width: 82px;
    height: 84px;
  }

  .loan-meta-grid {
    grid-template-columns: 1fr;
    position: static;
    margin-top: 18px;
  }

  .phone-input-wrapper {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .country-select,
  .phone-input-wrapper input,
  .send-button,
  .verify-button {
    height: 44px;
  }

  .trust-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .trust-security {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item {
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .trust-metrics .trust-item:nth-child(3) {
    display: none;
  }
}
