:root {
  --navy: #112f58;
  --blue: #1264cf;
  --sky: #0b8fb4;
  --teal: #0cb5a5;
  --green: #35bd86;
  --coral: #ff765f;
  --muted: #657184;
  --line: #dce6f1;
  --radius: 1rem;
}

.login-page,
.login-page *,
.login-page *::before,
.login-page *::after {
  box-sizing: border-box;
}

/* One viewport: drop theme chrome that forces a second scroll. */
#header, #header .header-top, .header-banner, nav.header-nav,
#notifications, .breadcrumb, #wrapper .breadcrumb, #mobile_top_menu_wrapper,
.page-header, #js-product-list-header,
#footer, .footer-container, #footer-container {
  display: none !important;
}
#wrapper, #content-wrapper, #main, .page-content {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  max-width: none !important;
}

.login-page {
  position: relative;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 100%;
  padding: clamp(16px, 3.2vh, 40px) 18px;
  background:
    radial-gradient(circle at 15% 12%, #fff 0, transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(18,185,160,.12) 0, transparent 42%),
    linear-gradient(180deg, #f8fcff 0%, #eef7fc 100%);
}
.simbale-auth.login-page {
  display: block;
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
  isolation: isolate;
  float: none;
  overflow-x: hidden;
}
.simbale-auth--popup.login-page {
  min-height: auto !important;
  max-width: 100%;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}
.login-page .ambient { position: absolute; border-radius: 999px; pointer-events: none; filter: blur(2px); }
.login-page .ambient-one { width: 140px; height: 140px; top: 12%; left: -40px; background: rgba(25,140,228,.11); }
.login-page .ambient-two { width: 120px; height: 120px; right: -36px; bottom: 8%; background: rgba(16,185,160,.1); }
.login-shell { position: relative; z-index: 1; width: min(100%, 520px); max-width: 100%; margin: 0 auto; float: none; }
.brand-header { margin-bottom: clamp(16px, 2.4vh, 24px); text-align: center; }
.brand-header .logo-crop { position: relative; width: clamp(150px, 32vw, 200px); height: auto; margin: 0 auto 8px; }
.brand-header .logo-crop img { width: 100%; height: auto; max-height: clamp(48px, 8vh, 72px); object-fit: contain; }
.brand-header h1 { margin: 0; color: #0c284f; font-size: clamp(1.35rem, 3.2vh, 1.9rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.3; }
.brand-header p { margin: 8px 0 0; color: #6f7888; font-size: clamp(.88rem, 2vh, 1.02rem); line-height: 1.45; }

.login-card {
  padding: clamp(20px, 3.2vh, 32px) clamp(16px, 3vw, 28px);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(25,66,104,.12), 0 4px 12px rgba(25,66,104,.06);
  float: none;
  width: 100%;
  max-width: 100%;
}
.login-page #loginForm,
.login-page form#loginForm {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.login-card .simbale-alert { margin-bottom: 12px; padding: 10px 12px; font-size: .9rem; }

.login-page .field-group {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: both;
  text-align: right;
}
.login-page .field-group label {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #102c53;
  font-size: 1rem;
  font-weight: 800;
  text-align: right;
}
.login-page .phone-ico {
  display: inline-flex;
  color: var(--sky);
  line-height: 0;
}
.login-page .phone-ico svg { width: 18px; height: 18px; }
.login-page .phone-field {
  position: relative;
  width: 100%;
}
.login-page .phone-clear {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e8eef5;
  color: #4a5d73;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.login-page .phone-clear:hover { background: #d5e0eb; color: #1d334c; }
.login-page .mobile-input,
.login-page input.mobile-input[type="tel"] {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  height: clamp(52px, 7vh, 58px) !important;
  margin: 0 !important;
  padding: 0 14px 0 42px !important;
  border: 1.5px solid #b7d2eb !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #17375f;
  box-shadow: 0 4px 12px rgba(25,91,155,.07);
  direction: ltr;
  text-align: left;
  font-size: 1.08rem;
  letter-spacing: .035em;
  outline: none;
}
.login-page .mobile-input:focus {
  border-color: #2386e8 !important;
  box-shadow: 0 0 0 3px rgba(35,134,232,.12), 0 4px 12px rgba(25,91,155,.08);
}
.login-page .mobile-input[aria-invalid="true"] { border-color: var(--coral) !important; }
.field-message { min-height: 0; margin: 0; color: #8a95a6; font-size: .78rem; line-height: 1.35; }
.field-message:empty { display: none; }
.field-message.is-error { display: block; margin: 6px 3px 0; color: #d94e3b; }

.login-page .method-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px;
  margin: 16px 0 0;
  width: 100%;
  direction: rtl;
}
.login-page label.method-card,
.login-page .method-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-height: 118px;
  margin: 0 !important;
  padding: 22px 10px 14px !important;
  gap: 8px;
  cursor: pointer;
  border: 1.5px solid #d6e0ea !important;
  border-radius: 16px;
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(33,70,103,.04);
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.login-page .method-card:hover { transform: translateY(-1px); border-color: #9dc7ef !important; }
.login-page .method-card.selected {
  border-color: #1672dc !important;
  background: linear-gradient(145deg,#f8fcff,#edf6ff) !important;
  box-shadow: 0 6px 14px rgba(22,114,220,.1);
}
.login-page input.method-radio,
.login-page .method-card input[type="radio"] {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  bottom: auto !important;
  display: inline-block !important;
  float: none !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #1672dc;
  z-index: 2;
}
.login-page .method-icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
}
.login-page .method-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: 0 0 auto;
  overflow: hidden;
}
.login-page .method-icon svg { display: block; width: 40px; height: 40px; }
.login-page .bale-icon { background: transparent; }
.login-page .sms-icon { background: transparent; }
.login-page .method-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}
.login-page .method-copy strong {
  display: block;
  color: #0d2c55;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}
.login-page .method-copy small {
  display: block;
  color: #68758a;
  font-size: .74rem;
  line-height: 1.45;
  max-width: 100%;
  white-space: normal;
}
.login-page .selected-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #fff;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 4px 10px rgba(53,189,134,.26);
  font-size: .7rem;
  font-weight: 900;
  flex: 0 0 auto;
}
.login-page .method-card:not(.selected) .selected-check { display: none; }

.login-page .submit-button,
.login-page button.submit-button {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  height: clamp(52px, 7vh, 58px);
  margin: clamp(18px, 2.6vh, 24px) 0 0 !important;
  padding: 0 16px !important;
  justify-content: center;
  align-items: center;
  gap: 12px;
  float: none !important;
  border: 0 !important;
  border-radius: 14px;
  background: linear-gradient(100deg,var(--teal),#087ebc 55%,var(--blue));
  color: #fff !important;
  font-size: 1.02rem;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(18,100,207,.2);
  cursor: pointer;
}
.login-page .submit-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(100deg,#0aa998,#0877b4 55%,#115abe);
  box-shadow: 0 10px 18px rgba(18,100,207,.24);
}

.recovery-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(18px, 2.6vh, 26px);
  padding-top: clamp(16px, 2.2vh, 22px);
  border-top: 1px solid var(--line);
}
.login-page .help-button,
.login-page .help-link,
.login-page .simbale-help-toggle {
  display: inline !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  align-items: unset;
  justify-content: unset;
  gap: 0;
  cursor: pointer;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 2px;
  box-shadow: none !important;
  transform: none !important;
}
.help-button:hover,
.help-link:hover,
.login-page .simbale-help-toggle:hover {
  transform: none !important;
  background: transparent !important;
  color: #0e7490 !important;
}
.sos-badge { display: none !important; }
.recovery-area a { color: #0966c9; font-size: .9rem; font-weight: 800; text-decoration: none; line-height: 1.3; }
.recovery-area a:hover { text-decoration: underline; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  width: 100%;
  max-width: 100%;
  margin-top: clamp(16px, 2.2vh, 22px);
  padding: 14px 8px;
  border: 1px solid #e4ebf3;
  border-radius: 12px;
  background: #fbfdff;
  overflow: hidden;
}
.trust-row>div { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 6px; padding: 0 4px; color: #536176; font-size: .7rem; line-height: 1.25; }
.trust-row>div+div { border-right: 1px solid #e4eaf1; }
.trust-row svg { display: block; flex: 0 0 auto; width: 16px; height: 16px; }
.trust-green { color: #0aa97a; } .trust-blue { color: #1175df; } .trust-purple { color: #6741e7; }

.login-page .simbale-help { margin-top: 0; padding-top: 0; border-top: 0; width: 100%; text-align: center; }
.login-page .simbale-help-panel { margin-top: 10px; }

@media (max-width:560px) {
  .login-page { padding: 14px 12px 18px; }
  .login-card { padding: 18px 14px; border-radius: 20px; }
  .login-page .method-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 10px;
  }
  .login-page .method-card { min-height: 110px; padding: 20px 8px 12px !important; }
  .login-page .method-copy strong { font-size: .95rem; }
  .login-page .method-copy small { font-size: .68rem; }
  .trust-row>div { flex-direction: column; gap: 4px; padding: 0 3px; font-size: .62rem; text-align: center; }
}

@media (prefers-reduced-motion:reduce) {
  .login-page *, .login-page *::before, .login-page *::after { transition: none !important; }
}

/* Compact popup; keep bottom padding so the ticket form can scroll. */
.simbale-auth--popup.login-page { padding: 8px 8px 24px !important; }
.simbale-auth--popup .brand-header { margin-bottom: 6px; }
.simbale-auth--popup .brand-header .logo-crop img { max-height: 44px; }
.simbale-auth--popup .brand-header h1 { font-size: 1.18rem; }
.simbale-auth--popup .brand-header p { margin-top: 2px; font-size: .78rem; }
.simbale-auth--popup .login-card { padding: 12px 12px 10px; border-radius: 16px; }
.simbale-auth--popup .login-page .mobile-input,
.simbale-auth--popup input.mobile-input[type="tel"] { height: 40px !important; }
.simbale-auth--popup .login-page .method-grid { margin-top: 8px; gap: 6px; }
.simbale-auth--popup .login-page .method-card { min-height: 80px; padding: 12px 6px 6px !important; }
.simbale-auth--popup .login-page .submit-button,
.simbale-auth--popup .login-page button.submit-button { height: 40px; margin-top: 8px !important; }
.simbale-auth--popup .recovery-area { gap: 6px; margin-top: 8px; padding-top: 8px; }
.simbale-auth--popup .trust-row { display: none !important; }
.simbale-auth--popup .login-page .field-group label { margin-bottom: 4px !important; font-size: .86rem; }
.simbale-help-panel[hidden],
.simbale-help-form[hidden],
.simbale-help-status[hidden] {
  display: none !important;
}
