/* RB Fintech auth screens — standalone mobile-app design system. */
:root {
  --navy: #071a3d; --blue: #1769ff; --blue-dark: #0b3fae; --sky: #1fb6ff;
  --ink: #14213d; --muted: #71819a; --line: #e3ebf7; --surface: #fff; --page: #f4f7fb;
  --shadow: 0 18px 50px rgba(7, 26, 61, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body.auth-page { min-height: 100dvh; background: var(--page); color: var(--ink); overflow-x: hidden; }
body.auth-page a { color: var(--blue); text-decoration: none; }
body.auth-page button, body.auth-page input, body.auth-page select { font: inherit; }
body.auth-page button, body.auth-page a { -webkit-tap-highlight-color: transparent; }
body.auth-page button:focus-visible, body.auth-page input:focus-visible, body.auth-page select:focus-visible, body.auth-page a:focus-visible { outline: 3px solid rgba(23,105,255,.24); outline-offset: 3px; }

.auth-page > header { width: 100%; min-height: 72px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: relative; z-index: 20; backdrop-filter: blur(18px); }
.auth-page .container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.auth-page .navbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; }
.auth-page .logo-container { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 850; }
.auth-page .logo-img { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: 0 8px 18px rgba(23,105,255,.22); font-weight: 900; }
.auth-page .logo-text { letter-spacing: .03em; }
.auth-page .logo-text span { color: var(--blue); }
.auth-page .nav-links { display: flex; align-items: center; gap: 26px; }
.auth-page .nav-links a { color: #52627a; font-size: .86rem; font-weight: 750; }
.auth-page .nav-links a:hover { color: var(--blue); }
.auth-page .mobile-menu-btn { display: none; }
.auth-page .nav-buttons { display: flex; align-items: center; gap: 10px; }
.auth-page .btn-login { color: var(--blue); font-weight: 800; }
.auth-page .auth-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: 0 8px 16px rgba(23,105,255,.18); font-size: .84rem; font-weight: 850; }

.login-page .form-section { width: min(1120px, calc(100% - 48px)); min-height: calc(100dvh - 72px); margin: 0 auto; padding: 56px 0; display: grid; grid-template-columns: minmax(300px, 1fr) minmax(360px, 440px); align-items: center; gap: clamp(48px, 8vw, 112px); }
.login-page .form-section::before { content: "Your money,\A beautifully in control."; white-space: pre; min-height: 510px; display: flex; align-items: center; justify-content: center; padding: 44px; overflow: hidden; border-radius: 34px; color: #fff; text-align: center; font: 800 clamp(2rem, 3.2vw, 2.9rem)/1.02 Inter, sans-serif; letter-spacing: -.065em; background: radial-gradient(circle at 80% 15%, rgba(31,182,255,.52), transparent 30%), linear-gradient(145deg, var(--navy), var(--blue-dark) 60%, var(--blue)); box-shadow: 0 32px 80px rgba(7,26,61,.22); }
.login-page #loginForm { width: 100%; padding: 40px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); }
.login-page #loginForm::before { content: "WELCOME BACK"; display: block; margin-bottom: 9px; color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .18em; }
.login-page #loginForm h2 { margin: 0 0 8px; color: var(--navy); font-size: 2.1rem; letter-spacing: -.06em; }
.login-page #loginForm label { display: block; margin: 20px 0 0; color: #31435f; font-size: .84rem; font-weight: 800; }
.login-page #loginForm input { display: block; width: 100%; height: 54px; margin-top: 8px; padding: 0 15px; border: 1px solid #d4e1f2; border-radius: 14px; background: #fbfdff; color: var(--ink); }
.login-page #loginForm input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(23,105,255,.11); outline: 0; }
.login-page #loginForm > div[style] { margin-top: 11px !important; }
.login-page #loginForm > div a { font-size: .82rem; font-weight: 800; }
.login-page #loginBtn { width: 100%; height: 54px; margin-top: 0; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: 0 12px 22px rgba(23,105,255,.23); font-weight: 850; cursor: pointer; }
.login-page #loginBtn:hover { transform: translateY(-2px); }
.login-page #loginForm > p { margin: 26px 0 0; text-align: center; color: var(--muted); font-size: .87rem; }
.login-page #loginForm > p a { font-weight: 850; }

.signup-page > main.container { width: min(100%, 900px); min-height: calc(100dvh - 72px); margin: 0 auto; padding: 48px 20px 72px; display: flex; justify-content: center; align-items: flex-start; }
.signup-page .wizard { width: min(100%, 720px); padding: 42px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); }
.signup-page .wizard::before { content: "RB FINTECH  /  NEW ACCOUNT"; display: block; margin-bottom: 16px; color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .17em; }
.signup-page .title { margin: 0; color: var(--navy); font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1; letter-spacing: -.07em; }
.signup-page .auth-back-link { display: inline-flex; margin: -8px 0 6px; color: var(--blue); font-size: .86rem; font-weight: 850; }
.signup-page .auth-back-link:hover { text-decoration: underline; }
.signup-page .muted { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.signup-page .progress-wrap { margin: 30px 0 32px; }
.signup-page .progress-bar { width: 25%; height: 7px; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--sky)); box-shadow: 0 5px 12px rgba(23,105,255,.22); transition: width .28s ease; }
.signup-page .steps-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; color: #97a6ba; font-size: .72rem; font-weight: 800; }
.signup-page .step-label.active { color: var(--blue); }
.signup-page .step { display: none; }
.signup-page .step.active { display: block; }
.signup-page .step h2 { margin: 0 0 20px; color: var(--navy); font-size: 1.45rem; letter-spacing: -.04em; }
.signup-page .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.signup-page label { display: block; color: #31435f; font-size: .84rem; font-weight: 800; }
.signup-page input, .signup-page select { width: 100%; min-height: 52px; margin-top: 8px; padding: 0 14px; border: 1px solid #d4e1f2; border-radius: 14px; background: #fbfdff; color: var(--ink); outline: 0; }
.signup-page input:focus, .signup-page select:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(23,105,255,.11); }
.signup-page .account-cards { display: flex; gap: 14px; margin: 10px 0 18px; }
.signup-page .account-cards .card { flex: 1; min-height: 96px; display: flex; align-items: center; padding: 18px; border: 1px solid #d4e1f2; border-radius: 18px; background: #fbfdff; cursor: pointer; }
.signup-page .account-cards .card:has(input:checked) { border-color: var(--blue); background: #eef5ff; box-shadow: 0 10px 24px rgba(23,105,255,.10); }
.signup-page .account-cards input { display: none; }
.signup-page .account-cards h3 { margin: 0; color: var(--navy); font-size: 1rem; }
.signup-page .strength-meter { height: 7px; margin: 14px 0 8px; overflow: hidden; border-radius: 99px; background: #eaf0f8; }
.signup-page .strength-meter > div { height: 100%; border-radius: inherit; transition: width .2s ease, background .2s ease; }
.signup-page .pw-checklist { padding: 0; list-style: none; color: var(--muted); font-size: .78rem; line-height: 1.8; }
.signup-page .pw-checklist li.pass { color: var(--blue); font-weight: 800; }
.signup-page .checkbox { margin-top: 20px; line-height: 1.6; }
.signup-page .checkbox input { width: auto; min-height: 0; margin: 0 7px 0 0; accent-color: var(--blue); }
.signup-page .nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.signup-page .nav .btn { min-height: 50px; padding: 0 22px; border: 0; border-radius: 14px; font-weight: 850; cursor: pointer; }
.signup-page .nav .btn.primary { color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: 0 10px 22px rgba(23,105,255,.20); }
.signup-page .nav .btn.secondary { color: var(--blue); border: 1px solid #d4e1f2; background: #fff; }

@media (max-width: 760px) {
  .auth-page > header, .auth-page .navbar { min-height: 62px; }
  .auth-page .container { padding: 0 16px; }
  .auth-page .nav-buttons { display: flex; align-items: center; gap: 8px; }
  .auth-page .nav-buttons .btn-login, .auth-page .nav-buttons .auth-cta { display: none; }
  .auth-page .mobile-menu-btn { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); background: #fff; cursor: pointer; }
  .auth-page .mobile-menu-btn i { font-style: normal; font-size: 0; }
  .auth-page .mobile-menu-btn i::before { content: "☰"; font-size: 24px; line-height: 1; }
  .auth-page .mobile-menu-btn i.fa-times::before { content: "×"; font-size: 30px; }
  .auth-page .nav-links { display: none; position: fixed; top: 72px; left: 12px; right: 12px; z-index: 50; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 24px 60px rgba(7,26,61,.18); }
  .auth-page .nav-links.active { display: flex; }
  .auth-page .nav-links a { display: block; padding: 14px; border-radius: 12px; color: var(--ink); font-weight: 750; }
  .auth-page .nav-links a:hover, .auth-page .nav-links a:focus-visible { background: #eef5ff; color: var(--blue); }
  .login-page .form-section { width: 100%; min-height: calc(100dvh - 62px); display: block; padding: 20px 16px 32px; }
  .login-page .form-section::before { min-height: 150px; margin-bottom: 16px; padding: 24px; border-radius: 24px; font-size: 2rem; }
  .login-page #loginForm { padding: 26px 20px 24px; border-radius: 24px; }
  .login-page #loginForm h2 { font-size: 1.85rem; }
  .signup-page > main.container { width: 100%; min-height: calc(100dvh - 62px); padding: 18px 12px 0; }
  .signup-page .wizard { width: 100%; padding: 25px 18px 92px; border-radius: 24px 24px 0 0; box-shadow: 0 10px 30px rgba(7,26,61,.07); }
  .signup-page .title { font-size: 2.2rem; }
  .signup-page .grid { grid-template-columns: 1fr; gap: 15px; }
  .signup-page .account-cards { flex-direction: column; }
  .signup-page .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 -10px 30px rgba(7,26,61,.08); backdrop-filter: blur(16px); }
  .signup-page .nav .btn { flex: 1; }
}
@media (max-width: 420px) {
  .login-page #loginForm { padding: 24px 16px; }
  .signup-page .wizard { padding-left: 15px; padding-right: 15px; }
  .signup-page .steps-labels { font-size: .66rem; }
}

/* Keep SweetAlert confirmation labels readable on auth screens. */
.auth-page .swal-modal {
  width: min(92vw, 520px);
  border-radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.auth-page .swal-footer {
  margin-top: 18px;
  text-align: center;
}

.auth-page .swal-button-container {
  display: inline-block !important;
  min-width: 72px;
}

.auth-page .swal-button,
.auth-page .swal-button.rb-swal-confirm {
  display: inline-flex !important;
  min-width: 72px !important;
  min-height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 18px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #1769ff, #0b3fae) !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  text-indent: 0 !important;
  visibility: visible !important;
}

.auth-page .swal-button:not([disabled]):hover,
.auth-page .swal-button.rb-swal-confirm:not([disabled]):hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* SweetAlert can create an empty button element when its default label is
   overridden by another stylesheet. Keep the success action self-labelled. */
.auth-page .swal-button.rb-swal-confirm {
  font-size: 0 !important;
}

.auth-page .swal-button.rb-swal-confirm::after {
  content: "OK";
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}
