:root {
  --login-red: #e31e24;
  --login-teal: #16918f;
  --login-yellow: #f5d000;
  --login-dark: #1a1a2e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: #333;
}

.login-page {
  display: flex;
  min-height: 100vh;
}

/* Left – Form */
.login-form-panel {
  flex: 0 0 38%;
  max-width: 480px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  background: #fff;
}

.login-form-panel h1 {
  font-size: 1.35rem;
  font-weight: 500;
  color: #444;
  text-align: center;
  margin-bottom: 36px;
}

.login-form-panel .form-label {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 6px;
}

.login-form-panel .form-select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: #333;
  box-shadow: none;
}

.login-form-panel .form-select:focus {
  border-color: var(--login-teal);
  box-shadow: 0 0 0 2px rgba(22, 145, 143, 0.15);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 24px;
  color: #aaa;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.btn-login-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 12px;
  border: none;
  border-radius: 4px;
  background: #f0f0f0;
  color: #333;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-login-option:hover {
  background: #e6e6e6;
  color: #222;
}

.btn-login-option .bi-whatsapp {
  color: #25d366;
  font-size: 1.25rem;
}

.btn-login-option .bi-phone {
  font-size: 1.15rem;
}

.login-terms {
  margin-top: 32px;
  font-size: 0.78rem;
  color: #888;
  text-align: center;
  line-height: 1.5;
}

.login-terms a {
  color: var(--login-teal);
  text-decoration: none;
  font-weight: 500;
}

.login-terms a:hover {
  text-decoration: underline;
}

.legal-pill-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.legal-pill-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #ccc;
  border-radius: 999px;
  color: #999;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  text-transform: uppercase;
  min-width: 130px;
}

.legal-pill-links a:hover {
  border-color: var(--login-teal);
  color: var(--login-teal);
}

/* Right – Promo */
.mobile-number-view[hidden] { display: none; }
.mobile-number-view h1 { font-size: 1.9rem; font-weight: 400; color: #111; margin-bottom: 50px; }
.mobile-field { margin-bottom: 24px; }
.mobile-field label { display: block; color: #777; font-size: 0.72rem; margin-bottom: 2px; }
.mobile-field select,
.mobile-field input {
  width: 100%;
  height: 34px;
  padding: 0 2px;
  color: #222;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  outline: none;
  font-size: 0.95rem;
}
.mobile-field input::placeholder { color: #888; opacity: 1; }
.mobile-field select:focus,
.mobile-field input:focus { border-bottom-color: var(--login-teal); }
.fixed-country {
  height: 34px;
  padding: 5px 2px;
  color: #222;
  border-bottom: 1px solid #ccc;
  font-size: 0.95rem;
}
.recaptcha-wrap {
  width: 100%;
  min-height: 78px;
  overflow: hidden;
}
.recaptcha-box {
  position: relative;
  min-height: 78px;
  padding: 18px 12px 15px;
  border: 1px solid #d4d4d4;
  border-radius: 3px;
  background: #fafafa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.recaptcha-check { display: flex; align-items: center; gap: 12px; color: #222; font-size: 0.85rem; }
.recaptcha-check input { width: 28px; height: 28px; margin: 0; }
.recaptcha-brand {
  position: absolute;
  top: 11px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #777;
  font-size: 0.58rem;
}
.recaptcha-brand i { color: #3769c8; font-size: 2rem; line-height: 1; }
.recaptcha-box small {
  position: absolute;
  left: 4px;
  bottom: 3px;
  color: #666;
  font-size: 0.53rem;
  line-height: 1.15;
}
.mobile-login-terms {
  margin: 20px 0 0;
  color: #999;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.45;
}
.mobile-login-terms a { color: var(--login-teal); font-weight: 700; text-decoration: none; }
.mobile-login-actions { display: flex; justify-content: center; gap: 30px; }
.mobile-login-actions button {
  width: 124px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--login-teal);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.mobile-login-actions button:disabled {
  background: #b8b8b8;
  cursor: not-allowed;
  opacity: 0.7;
}

.login-toast {
  position: fixed;
  top: 18px;
  right: 14px;
  z-index: 1100;
  width: min(312px, calc(100vw - 28px));
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(100% + 30px));
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

.login-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.login-toast-content {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 14px 12px;
  color: #777;
  font-size: 0.95rem;
}

.login-toast-content > i {
  flex: 0 0 auto;
  margin-right: 11px;
  color: #ed5147;
  font-size: 1.2rem;
}

.login-toast-content span {
  flex: 1;
}

.login-toast-content button {
  align-self: flex-start;
  padding: 0 0 0 10px;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.login-toast-progress {
  width: 0;
  height: 4px;
  background: #ed5147;
}

.login-toast.show .login-toast-progress {
  animation: login-toast-timer 4s linear forwards;
}
.login-toast.success .login-toast-content > i { color: #08bd27; }
.login-toast.success .login-toast-progress { background: #08bd27; }

.otp-view[hidden] { display: none; }
.otp-view { text-align: center; }
.otp-view h1 {
  margin-bottom: 52px;
  color: #111;
  font-size: 1.9rem;
  font-weight: 400;
}
.otp-description {
  margin-bottom: 24px;
  color: #999;
  font-size: 0.95rem;
  line-height: 1.5;
}
.otp-field { text-align: left; }
.otp-field label {
  display: block;
  margin-bottom: 14px;
  color: #666;
  font-size: 0.7rem;
}
.otp-field input {
  width: 100%;
  height: 28px;
  border: 0;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  outline: none;
}
.otp-field input:focus { border-bottom-color: var(--login-teal); }
.resend-otp {
  display: block;
  margin: 7px 0 6px 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f02525;
  font-size: 0.95rem;
}
.resend-otp:disabled {
  cursor: not-allowed;
  opacity: 1;
}
.otp-terms {
  margin: 0 0 10px;
  color: #999;
  font-size: 0.95rem;
  line-height: 1.45;
}
.otp-terms a {
  color: var(--login-teal);
  font-weight: 700;
  text-decoration: none;
}
.otp-primary-btn,
.otp-back-btn {
  display: block;
  width: 80%;
  height: 40px;
  margin: 0 auto 20px;
  border-radius: 7px;
  font-weight: 700;
}
.otp-primary-btn {
  border: 1px solid var(--login-teal);
  background: var(--login-teal);
  color: #fff;
}
.otp-back-btn {
  border: 1px solid var(--login-teal);
  background: #fff;
  color: var(--login-teal);
}

.signup-view[hidden] { display: none; }
.signup-view h1 {
  margin: 0;
  color: #111;
  font-size: 1.9rem;
  font-weight: 400;
}
.signup-view > p {
  margin: 4px 0 26px;
  color: #999;
  font-size: 1rem;
  text-align: center;
}
.signup-view form {
  width: 84%;
  margin: 0 auto;
}
.signup-view label {
  display: block;
  margin: 0 0 3px;
  color: #777;
  font-size: 0.72rem;
}
.signup-view input,
.signup-view select {
  width: 100%;
  height: 34px;
  margin-bottom: 14px;
  padding: 3px 2px;
  border: 0;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  outline: none;
}
.signup-view input[readonly] {
  padding-left: 4px;
  background: #f0f0f0;
}
.signup-view input:focus,
.signup-view select:focus { border-bottom-color: var(--login-teal); }
.signup-view button {
  display: block;
  min-width: 100px;
  height: 40px;
  margin: 2px auto 0;
  border: 0;
  border-radius: 8px;
  background: var(--login-teal);
  color: #fff;
  font-weight: 700;
}
.signup-view button:disabled { cursor: not-allowed; opacity: 0.7; }

.city-picker {
  position: relative;
  margin-bottom: 14px;
}
.city-picker-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 3px 2px !important;
  border: 0 !important;
  border-bottom: 1px solid #ccc !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #777 !important;
  font-weight: 400 !important;
  text-align: left;
}
.city-picker.open .city-picker-toggle i { transform: rotate(180deg); }
.city-picker-menu {
  position: absolute;
  top: 35px;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 6px;
  border-radius: 0 0 5px 5px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12);
}
.city-picker-menu input {
  height: 36px;
  margin: 0;
  padding: 5px;
  border: 2px solid #ef233c;
  border-radius: 8px;
}
.city-picker-menu input:focus {
  border: 2px solid #ef233c;
  box-shadow: none;
  outline: none;
}
.city-picker-status {
  padding: 7px 5px 2px;
  color: #777;
  font-size: 0.9rem;
}
.city-dot-loader {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 12px 0 8px;
}
.city-dot-loader[hidden] { display: none; }
.city-dot-loader span {
  width: 10px;
  height: 8px;
  border-radius: 50%;
  background: #df2738;
  animation: city-dot-pulse 0.7s infinite alternate;
}
.city-dot-loader span:nth-child(2) { animation-delay: 0.25s; }
.city-results {
  max-height: 205px;
  overflow-y: auto;
}
.city-result {
  display: block !important;
  width: 100% !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid #eee !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 1rem;
  font-weight: 400 !important;
  text-align: center;
}
.city-result:hover { background: #f7f7f7 !important; }
@keyframes city-dot-pulse {
  from { opacity: 0.35; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes login-toast-timer {
  from { width: 100%; }
  to { width: 0; }
}

.login-promo-panel {
  flex: 1;
  background: var(--login-red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
}

.promo-logo {
  text-align: center;
  margin-bottom: 48px;
}

.promo-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 8px;
}

.promo-logo .tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
}

.promo-headline {
  text-align: center;
  margin-bottom: 40px;
}

.promo-headline .line {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.15;
  text-transform: uppercase;
}

.promo-headline .cricket-block {
  display: inline-block;
  background: var(--login-yellow);
  color: var(--login-dark);
  padding: 4px 20px;
  margin: 6px 0;
}

.promo-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.promo-stats .count-box {
  background: var(--login-dark);
  color: #fff;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 800;
  padding: 8px 16px;
  letter-spacing: 1px;
}

.promo-stats .count-label {
  color: #fff;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 1px;
}

.promo-phone {
  position: absolute;
  right: 5%;
  bottom: 0;
  max-height: 75%;
  width: auto;
  object-fit: contain;
  pointer-events: none;
}

.promo-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

/* Mobile */
@media (max-width: 991.98px) {
  .login-page {
    flex-direction: column;
  }

  .login-form-panel {
    flex: none;
    max-width: 100%;
    min-width: 0;
    padding: 40px 28px;
    min-height: 100vh;
  }

  .login-promo-panel {
    display: none;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .login-form-panel {
    flex: 0 0 42%;
    padding: 40px 36px;
  }

  .promo-phone {
    max-height: 65%;
    right: 2%;
  }
}
