/* Shared E-BIKE Pro authentication presentation. */
body.login-page {
  min-height: 100vh;
  min-height: 100svh;
  color-scheme: light;
  color: #0b1741;
  background: #ed1218;
  font-family: "DM Sans", Arial, sans-serif;
}

.login-page button,
.login-page input { font: inherit; }

.login-page .auth-page {
  display: flex;
  position: relative;
  flex-direction: column;
  isolation: isolate;
  width: min(100%, 576px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 0 max(8px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: #ed1218;
}

.login-page .auth-page::before {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  background: #063db6;
  clip-path: polygon(0 31%, 16% 49%, 36% 65%, 57% 69%, 79% 58%, 100% 32%, 100% 100%, 0 100%);
  content: "";
  pointer-events: none;
}

.login-page .auth-page::after {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 63px;
  left: 0;
  height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 46' preserveAspectRatio='none'%3E%3Cpath d='M0 15 C78 35 150 43 226 43 C357 43 445 30 576 7' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

.login-page .hero-art {
  z-index: 0;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 941 / 800;
  overflow: hidden;
  background: #ed1218;
}

.login-page .hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.login-page .hero-art::after { content: none; }

.login-page .auth-card {
  position: relative;
  z-index: 1;
  width: calc(100% - 48px);
  min-height: 0;
  margin: -22px 24px 0;
  padding: 40px 18px 20px;
  overflow: visible;
  border: 0;
  border-radius: 38px;
  background: #fff;
  color: #0b1741;
  box-shadow: 0 12px 24px rgba(75, 3, 9, .2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.login-page .auth-card::after { content: none; }

.login-page .profile-badge {
  position: absolute;
  top: -34px;
  left: 50%;
  width: 72px;
  height: 72px;
  padding: 5px;
  transform: translateX(-50%);
  border: 5px solid #fff;
  border-radius: 50%;
  background: #0844b9;
  box-shadow: 0 2px 5px rgba(8, 34, 96, .12);
}

.login-page .profile-badge svg { display: block; width: 100%; height: 100%; }

.login-page .auth-card h1 {
  margin: 0;
  color: #101b49;
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -.9px;
  line-height: 1.15;
  text-align: center;
}

.login-page .auth-subtitle {
  margin: 4px 0 15px;
  color: #263250;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.login-page .auth-card form {
  display: grid;
  gap: 11px;
}

.login-page .phone-field {
  display: grid;
  position: relative;
  grid-template-columns: minmax(132px, 44%) minmax(0, 1fr);
  align-items: center;
  width: 100%;
  height: 58px;
  min-height: 58px;
  gap: 0;
  padding: 0 13px;
  border: 2px solid #1353d2;
  border-radius: 23px;
  background: #fff;
  box-shadow: none;
}

.login-page .country-trigger {
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 46px;
  gap: 6px;
  border: 0;
  padding: 0 10px 0 3px;
  background: transparent;
  color: #101b49;
  text-align: left;
  cursor: pointer;
}

.login-page .country-globe {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  stroke: #101b49;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-page .country-choice {
  display: grid;
  min-width: 0;
  gap: 1px;
  line-height: 1;
}

.login-page .country-caption {
  color: #151a2a;
  font-size: 10px;
  font-weight: 600;
}

.login-page .country-selected {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #101b49;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.login-page .country-flag {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 19px;
  line-height: 1;
}

.login-page .dropdown-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-left: auto;
  stroke: #101b49;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-page .country-divider {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 44%;
  width: 1.5px;
  background: #a9aec0;
  pointer-events: none;
}

.login-page .phone-prefix { display: none !important; }

.login-page .phone-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  padding: 0 0 0 16px;
  background: transparent;
  color: #111b46;
  box-shadow: none;
  font-size: 16px;
  text-align: left;
}

.login-page .phone-input::placeholder,
.login-page .password-field input::placeholder {
  color: #65708e;
  opacity: 1;
}

.login-page .password-field {
  display: flex;
  width: 100%;
  height: 60px;
  min-height: 60px;
  align-items: center;
  gap: 0;
  padding: 0 12px 0 17px;
  border: 2px solid #c5c8d5;
  border-radius: 23px;
  background: #fff;
  box-shadow: none;
}

.login-page .password-field:focus-within {
  border-color: #1353d2;
  box-shadow: 0 0 0 3px rgba(19, 83, 210, .12);
}

.login-page .password-field::before { content: none; }

.login-page .password-field .field-icon {
  display: inline-flex;
  width: 37px;
  height: 32px;
  flex: 0 0 37px;
  align-items: center;
  color: #101b49;
}

.login-page .password-field .field-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-page .password-field input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: #101b49;
  box-shadow: none;
  font-size: 16px;
  text-align: left;
}

.login-page .password-toggle {
  display: inline-flex;
  position: relative;
  z-index: 2;
  width: 38px;
  height: 42px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: #525c78;
  cursor: pointer;
}

.login-page .password-toggle svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-page .login-options {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin: 1px 3px 0;
}

.login-page .remember-row {
  display: flex;
  width: auto;
  max-width: 100%;
  min-height: 26px;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #111b46;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
}

.login-page .remember-row input {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  margin: 0;
  appearance: none;
  border: 2px solid #17234c;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.login-page .remember-row input:checked {
  border-color: #104bc2;
  background: #104bc2;
  box-shadow: inset 0 0 0 4px #fff;
}

.login-page .remember-row input:focus-visible,
.login-page .password-help:focus-visible,
.login-page .country-trigger:focus-visible,
.login-page .primary-button:focus-visible,
.login-page .signup-footer a:focus-visible {
  outline: 3px solid rgba(18, 79, 203, .45);
  outline-offset: 3px;
}

.login-page .options-divider {
  width: 1px;
  height: 24px;
  flex: 0 0 1px;
  background: #aeb3c2;
}

.login-page .password-help {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: #104bc2;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.login-page .primary-button {
  display: flex;
  position: relative;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 23px;
  padding: 0 58px;
  background: #0a45bb;
  color: #fff;
  box-shadow: 0 4px 9px rgba(15, 51, 139, .18);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.3px;
  cursor: pointer;
  transition: background-color .18s ease, transform .14s ease;
}

.login-page .primary-button:hover { background: #073da9; }
.login-page .primary-button:active { transform: scale(.99); }

.login-page .submit-arrow {
  display: inline-flex;
  position: absolute;
  top: 50%;
  right: 24px;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: white;
  box-shadow: none;
}

.login-page .submit-arrow svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-page .demo-notice {
  margin: 9px 2px 0;
  color: #a0191e;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.login-page .demo-notice:empty { display: none; }

.login-page .signup-footer {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 79px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 14px 10px;
  color: #fff;
  font-size: 15px;
}

.login-page .signup-footer a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 28px;
  padding: 0 18px;
  background: #fff;
  color: #102a69;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.login-page .signup-footer a svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The existing accessible country sheet keeps its server-backed options. */
.login-page .country-overlay {
  align-items: flex-end;
  background: rgba(8, 17, 42, .5);
  backdrop-filter: blur(3px);
}

.login-page .country-sheet {
  border-color: #d7dbea;
  background: #fff;
  color: #111b46;
  box-shadow: 0 -8px 32px rgba(8, 20, 58, .18);
}

.login-page .country-overlay[data-stage="dots"] .country-sheet,
.login-page .country-overlay[data-stage="ready"] .country-sheet,
.login-page .country-overlay[data-stage="error"] .country-sheet {
  background: #fff;
}

.login-page .sheet-header {
  border-bottom-color: #e0e3ec;
  background: #fff;
}

.login-page .sheet-header h2 { color: #111b46; }
.login-page .sheet-back { color: #104bc2; }

.login-page .country-option {
  border-color: #dce1ed;
  background: #fff;
  color: #111b46;
}

.login-page .country-option:hover,
.login-page .country-option:focus-visible {
  outline-color: rgba(16, 75, 194, .5);
  background: #f2f6ff;
}

.login-page .country-error p { color: #46516d; }
.login-page .country-error button { background: #104bc2; color: #fff; }

@layer narke-focus {
  html body.login-page .auth-page input:focus-visible {
    background-color: #fff !important;
  }
}

@layer form-controls {
  html body.login-page .auth-card #login-phone,
  html body.login-page .auth-card #login-password {
    border: 0 !important;
    outline: none !important;
    background-color: #fff !important;
    color: #101b49 !important;
    -webkit-text-fill-color: #101b49 !important;
    caret-color: #101b49 !important;
    box-shadow: none !important;
  }

  html body.login-page .auth-card #login-phone::placeholder,
  html body.login-page .auth-card #login-password::placeholder {
    color: #65708e !important;
    -webkit-text-fill-color: #65708e !important;
    opacity: 1 !important;
  }

  html body.login-page .auth-card #login-phone:focus-visible,
  html body.login-page .auth-card #login-password:focus-visible {
    background-color: #fff !important;
  }

  html body.login-page .auth-card input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
    border: 0 !important;
    outline: none !important;
    background-color: #fff !important;
    color: #101b49 !important;
    -webkit-text-fill-color: #101b49 !important;
    caret-color: #101b49 !important;
    box-shadow: none !important;
  }

  html body.login-page .auth-card input::placeholder {
    color: #65708e !important;
    -webkit-text-fill-color: #65708e !important;
    opacity: 1 !important;
  }

  html body.login-page .auth-card input:focus-visible {
    background-color: #fff !important;
  }

  html body.login-page .auth-card .phone-field,
  html body.login-page .auth-card .phone-field:focus-within {
    border: 2px solid #1353d2 !important;
    box-shadow: none !important;
  }
}

@media (max-width: 380px) {
  .login-page .auth-card {
    width: calc(100% - 36px);
    margin-right: 18px;
    margin-left: 18px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .login-page .phone-field {
    grid-template-columns: minmax(122px, 46%) minmax(0, 1fr);
    padding-right: 9px;
    padding-left: 10px;
  }

  .login-page .country-trigger { gap: 5px; padding-right: 5px; }
  .login-page .country-globe { width: 23px; height: 23px; flex-basis: 23px; }
  .login-page .country-selected { gap: 4px; font-size: 15px; }
  .login-page .country-divider { left: 46%; }
  .login-page .phone-input { padding-left: 11px; font-size: 15px; }
  .login-page .remember-row { gap: 6px; font-size: 12px; }
  .login-page .password-help { font-size: 12px; }
  .login-page .signup-footer { gap: 8px; font-size: 13px; }
  .login-page .signup-footer a { min-height: 44px; gap: 4px; padding: 0 13px; font-size: 13px; }
}

@media (max-width: 430px) {
  .login-page .phone-input::placeholder { font-size: 14px; }
}

@media (max-width: 340px) {
  .login-page .signup-footer { gap: 6px; font-size: 12px; }
  .login-page .signup-footer > span { white-space: nowrap; }
  .login-page .signup-footer a { gap: 3px; padding: 0 9px; font-size: 12px; }
}

@media (max-height: 760px) {
  .login-page .hero-art { max-height: 40svh; }
  .login-page .auth-card { padding-top: 36px; padding-bottom: 15px; }
  .login-page .auth-card h1 { font-size: 28px; }
  .login-page .auth-subtitle { margin-bottom: 10px; }
  .login-page .auth-card form { gap: 9px; }
  .login-page .phone-field { height: 54px; min-height: 54px; }
  .login-page .password-field { height: 56px; min-height: 56px; }
  .login-page .primary-button { min-height: 56px; }
  .login-page .signup-footer { min-height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-page .primary-button { transition-duration: .01ms; }
}
