body, html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #000000;
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
  overflow-x: hidden;
}

.container {
  width: 100vw;
  min-height: 100vh;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.form-container {
  background-color: rgba(20, 20, 20, 0.7);
  border-radius: 5px;
  padding: 32px;
  width: 100%;
  max-width: 330px;
  border: 1px solid white;
  transform: scale(0.80); 
  transform-origin: center;
  margin: 20px auto;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.logo-box {
  width: 100px;
  height: 100px;
  background-image: linear-gradient(to bottom, #F2F2F2, #8C8C8C);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.logo-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.input-group {
  margin-bottom: 16px;
}

.input-group input {
  height: 44px;
  width: 100%;
  background-color: #0b0b0b;
  color: #F2F2F2;
  border: 1px solid #4b5563;
  border-radius: 3px;
  padding: 12px 16px;
  font-size: .95rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.input-group input:focus {
  border-color: #FF0025;
}


.register-button {
  width: 100%;
  background-color: #FF0025;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
  margin-bottom: 16px;
  margin-top: 15px;
}

.register-button:hover {
  background-color: #cc0000;
}

.mobile-input-container {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.mobile-input-wrapper {
  flex: 1;
}

.send-otp-btn {
  height: 44px;
  width: 70%;
  background-color: #FF0025;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 0px 3px 3px 0px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.send-otp-btn:hover {
  background-color: #cc0000;
}

.send-otp-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.social-buttons-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.social-button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #F2F2F2;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.social-button:hover {
  background-color: #e5e7eb;
}

.login-section {
  text-align: center;
  font-size: .90rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.login-text {
  color: #9ca3af;
  margin: 0;
}

.login-link {
  color: #FF0025;
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
  font-size: .90rem;
  font-weight: 700;
  padding: 0;
  margin: 0;
}

.login-link:hover {
  color: #cc0000;
}

.signup-error-box {
  border: 1px solid red;
  color: white;
  background-color: transparent;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 3px;
  font-size: 14px;
}


.input-with-asterisk {
  position: relative;
}

.required-asterisk {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #e74c3c;
  font-weight: bold;
  font-size: 16px;
  pointer-events: none;
}

.input-group {
margin-bottom: 15px;
}

.input-with-asterisk input {
  padding-right: 30px;
}

.character-limit {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  text-align: right;
}

/* OTP Modal Styles */
#otpModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.3);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.otp-modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  width: 320px;
  margin: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.otp-modal-content h3 {
  margin: 0 0 0.5em 0;
  font-size: 1.2em;
  color: #222;
  font-weight: 700;
}

.otp-modal-content p {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 1.2em;
}

.otp-modal-label {
  display: block;
  margin-bottom: 0.5em;
  color: #222;
  font-weight: bold;
  font-size: 0.95em;
}

.otp-modal-input {
  width: 100%;
  padding: 0.5em;
  font-size: 1em;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  margin-bottom: 1.2em;
  background: #fafafa;
  color: #222;
  outline: none;
  transition: border-color 0.2s;
}

.otp-modal-input:focus {
  border-color: #FF0025;
}

.otp-modal-btn {
  background: #FF0025;
  color: #fff;
  border: none;
  padding: 0.6em 1.5em;
  border-radius: 4px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.otp-modal-btn:hover {
  background: #cc0000;
}



/* Responsive Design */
/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .container {
    padding: 10px;
  }
  
  .form-container {
    transform: scale(1);
    padding: 20px;
    max-width: 100%;
    margin: 10px auto;
    border-radius: 8px;
  }
  
  .logo-box {
    width: 80px;
    height: 80px;
  }
  
  .logo-image {
    width: 80px;
    height: 80px;
  }
  
  .input-group input {
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .register-button {
    padding: 14px 16px;
    font-size: 16px;
  }
  
  .social-button {
    width: 44px;
    height: 44px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .form-container {
    transform: scale(0.9);
    max-width: 350px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .form-container {
    transform: scale(0.85);
    max-width: 380px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .form-container {
    transform: scale(0.80);
    max-width: 330px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .form-container {
    transform: scale(0.85);
    max-width: 350px;
  }
}

/* Portrait orientation adjustments */
@media (orientation: portrait) and (max-height: 700px) {
  .container {
    align-items: flex-start;
    padding-top: 20px;
  }
  
  .form-container {
    margin-top: 20px;
  }
  
  .logo-container {
    margin-bottom: 20px;
  }
}

/* Landscape orientation adjustments for small screens */
@media (orientation: landscape) and (max-height: 500px) {
  .container {
    align-items: flex-start;
    padding: 10px;
  }
  
  .form-container {
    transform: scale(0.7);
    margin: 10px auto;
    padding: 20px;
  }
  
  .logo-container {
    margin-bottom: 16px;
  }
  
  .logo-box {
    width: 60px;
    height: 60px;
  }
  
  .logo-image {
    width: 60px;
    height: 60px;
  }
}


