.signin-title {
  font-size: 38px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 66px;
  margin-bottom: 46px;
}

.signin-title span {
  color: #02C463;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
.signin-flex {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 64px;
  /* flex-wrap: wrap; */
  margin-top: 48px;
  margin-bottom: 108px;
  translate: none;
}
.signin-card {
  background: #F3F5FC;
  border-radius: 10px;
  padding: 35px 35px 35px 35px;
  width: 425px;
  height: 255px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  box-sizing: border-box;
  margin-right: 100px;
}
.signin-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
}
.signin-card form {
  margin-top: 18px;
}
.signin-phone-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.signin-phone-code {
  border: 1.5px solid #02C463;
  border-radius: 8px;
  font-size: 16px;
  height: 48px;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  width: 80px;
  color: #000;
  font-weight: 700;
  text-align: center;
}
.signin-phone-input {
  border: 1.5px solid #02C463;
  border-radius: 8px;
  font-size: 16px;
  /* height: 48px; */
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  flex: 1;
  padding-left: 14px;
  box-sizing: border-box;
  min-width: 0;
}
.signin-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}
.signin-checkbox {
  accent-color: #02C463;
  margin-top: 2px;
}
.signin-checkbox-label {
  font-size: 12px;
  color: #000;
  font-weight: 500;
}
.signin-policy-link {
  color: #02C463;
  text-decoration: underline;
}
.signin-btn {
  width: 100%;
  height: 50px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 9px;
  margin-top: 0;
  background-color: #BDBDBD;
  border: none;
  cursor: not-allowed;
  color: #fff;
  transition: all 0.2s ease-in-out;
}

.signin-btn.enabled,
.signin-btn:enabled {
  background-color: #02C463;
  cursor: pointer;
}
.signin-btn:active {
  transform: scale(0.98);
}
.signin-call {
  background: #F3F5FC;
  border-radius: 10px;
  padding: 22px 34px;
  width: 239px;
  height: 97px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  box-sizing: border-box;
}
.call-label {
  font-size: 20px;
  color: #000;
  font-weight: 600;
  margin-bottom: 14px;
}
.call-number {
  font-size: 16px;
  font-weight: 600;
  color: #02C463;
}
.call-number a {
  text-decoration: none;
  color: #02C463;
}
/* Phone code modal styles */
.phone-code-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 34, 34, 0.32); /* darker overlay */
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.phone-code-modal.active {
  display: flex;
}

.phone-code-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.phone-code-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.phone-code-modal-close:hover {
  background: #f0f0f0;
}

.phone-code-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  text-align: left;
}

.phone-code-modal-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
  text-align: left;
}

.code-inputs-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.code-input {
  width: 50px;
  height: 50px;
  border: 2px solid #E9ECF8;
  border-radius: 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  background: #F3F5FC;
  transition: border-color 0.2s;
}

.code-input:focus {
  outline: none;
  border-color: #02C463;
  background: #fff;
}

/* Error styling for code inputs */
.code-input.error {
  border-color: #e74c3c;
  background: #fff5f5;
  color: #e74c3c;
}

.code-timer {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.code-timer:hover {
  color: #02C463;
}

.code-timer.resend {
  color: #02C463;
  font-weight: 600;
}

.code-confirm-btn {
  width: 100%;
  background: #BDBDBD;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: not-allowed;
  transition: background 0.2s;
}

.code-confirm-btn.enabled,
.code-confirm-btn:enabled {
  background: #02C463;
  cursor: pointer;
}

.code-confirm-btn.enabled:hover,
.code-confirm-btn:enabled:hover {
  background: #02a553;
}

/* Global loading overlay */
#global-loading-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.85);
  justify-content: center;
  align-items: center;
}

.global-loading-spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #02C463;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: global-spin 1s linear infinite;
}

@keyframes global-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
  .signin-flex {
    gap: 32px;
  }
}
@media (max-width: 900px) {
  .signin-flex {
    flex-direction: column;
    gap: 24px;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 28px;
  }
  .signin-card, .signin-call {
    max-width: 90%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .signin-card {
    padding: 34px 20px 34px 20px;
    margin-right: 0;
  }
  .signin-call {
    margin-top: 18px;
    margin-bottom: 0;
    padding: 16px 10px;
    border-radius: 12px;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .call-label {
    font-size: 16px;
    margin-bottom: 8px;
    text-align: center;
  }
  .call-number {
    font-size: 15px;
    text-align: center;
  }
}
@media (max-width: 800px) {
  .signin-card, .signin-call {
    max-width: 90%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 700px) {
  .signin-title {
    font-size: 26px;
    margin-top: 24px;
    margin-bottom: 18px;
  }
}
@media (max-width: 500px) {
  .signin-card, .signin-call {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .signin-card {
    padding: 34px 20px 34px 20px;
  }
  .modal-content {
    max-width: 98vw;
    padding: 16px 4vw 12px 4vw;
  }
  .signin-title {
    font-size: 22px;
  }
  .signin-card-title {
    font-size: 17px;
  }
  .signin-btn {
    font-size: 15px;
    height: 42px;
    margin-top: 5px;
  }
  .signin-phone-code, .signin-phone-input {
    font-size: 14px;
    height: 38px;
    box-sizing: border-box;
  }
}

