body {
  background: #f5f6f8;
  font-family: "Roboto", Arial, sans-serif;
}

.signup-card {
  display: flex;
  width: 100%;
  max-width: 1400px;
  min-height: 750px;
  margin: 40px auto;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 200px;
}

.image-container {
  position: relative;
  overflow: hidden;
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf1fb;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.signup-form {
  width: 40%;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.signup-form-header {
  font-size: 40px;
  font-weight: 700;
  color: #0b459c;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 1px;
  font-family: Playfair Display;
}

.form-label {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
  margin-top: 18px;
  font-family: "Roboto", Arial, sans-serif;
}

.checkbox-container {
  align-items: center;
  margin-top: 20px;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 400;
  font-family: "Roboto", Arial, sans-serif;
}

.login-link-container {
  font-size: 20px;
  font-weight: 400;
  margin-top: 16px;
  margin-bottom: 16px;
  text-align: center;
  color: #757575;
}

.login-link {
  color: #000;
}

input[type="email"],
input[type="username"] {
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  background: #f9fafb;
  transition: border 0.2s;
}

input[type="email"]:focus,
input[type="username"]:focus {
  border: 1.5px solid #3576d1;
  outline: none;
  background: #fff;
}

.signup-button {
  width: 100%;
  padding: 12px 0;
  background: #0b459c;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  border: none;
  border-radius: 6px;
  margin-top: 12px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Roboto';
}

.signup-button:hover {
  background: #0B459C;
}

.form-label1 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
  margin-top: 10px;
}

.input-container input {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: "Roboto", Arial, sans-serif;
}

.footer-container {
  width: 100%;
  height: 100%;
}

.dashboard-content {
  padding: 0;
  flex-direction: column;
}

.error-message {
  color: red;
  margin-bottom: 10px;
}

.success-message {
  color: green;
  margin-bottom: 10px;
}

.input-icon-container {
  position: relative;
  width: 100%;
}

.input-icon-container input {
  width: 100%;
  padding-left: 44px; /* space for icon */
  height: 48px;
  font-size: 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
  transition: border 0.2s;
  box-sizing: border-box;
}

.input-icon-container input:focus {
  border: 1.5px solid #3576d1;
  outline: none;
  background: #fff;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.input-icon svg {
  vertical-align: middle;
}

.mail-icon {
  top: 40%; /* or try 55% for more nudge */
}

.form-label1 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
  margin-top: 10px;
  font-family: 'Roboto', sans-serif;
}

.login-signup-link {
  text-align: center;
  margin-top: 24px;
  font-size: 20px;
  font-weight: 400;
  font-family: 'Roboto';
  color: #757575;
}

.login-signup-link a {
  color: #1C1C1C;
  text-decoration: underline;
  font-weight: 400;
  margin-left: 5px;
}

.magic-link {
  width: 100%;
  padding: 10px 0;
  background: #fff;
  color: #0B459C;
  font-size: 18px;
  font-weight: 400;
  border: 2px solid #0B459C;
  border-radius: 6px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'Roboto', sans-serif;
}

.magic-link:hover {
  background: #3576d1;
  color: #fff;
}

.custom-modal {
  display: none; 
  position: fixed; 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.4);
}
.custom-modal-content {
  background-color: #fff;
  margin: 10% auto; 
  padding: 20px;
  border-radius: 8px;
  width: 90%; 
  max-width: 400px;
  text-align: center;
  position: relative;
}

.custom-modal-content h2 {
  color: #333;
  text-align: center;
  font-family: Roboto;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.custom-modal-content p {
  color: #333;
  text-align: center;
  font-family: Roboto;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.close-modal {
  position: absolute; 
  top: 10px; 
  right: 20px;
  font-size: 28px; 
  font-weight: bold; 
  cursor: pointer;
  color: #333;
}

.magic-link-container {
  display: flex;
  align-items: center;
}

.magic-link-container div {
  margin-top: 8px;
  margin-left: -5px;
}

.toggle-password-visibility {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 639px) {
  .signup-card {
    flex-direction: column;
    width: 100%;
  }

  .image-container {
    width: 100%;
    height: 250px; /* Adjust as needed */
    border-radius: none;
    position: relative;
    overflow: hidden;
  }
  .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .signup-form {
    width: 90%;
    padding: 48px 16px;
    align-self: center;
  }
}

@media (min-width:640px) and (max-width: 1024px) {
  .signup-card {
    flex-direction: column;
    width: 100%;
  }
  
  .image-container {
    width: 100%;
    height: 300px; /* Adjust as needed */
    border-radius: none;
    position: relative;
    overflow: hidden;
  }
  .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .signup-form {
    width: 90%;
  }
}

@media (max-width: 1024px) {
  .image-container {
    border-bottom-right-radius: 32px;
    border-bottom-left-radius: 32px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    overflow: hidden;
  }
  .image-container img {
    border-bottom-right-radius: 32px;
    border-bottom-left-radius: 32px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}

.dark-theme .signup-form{
  background-color: #434343;
}

.dark-theme .signup-button{
  background-color: #0B459C;
}
.dark-theme .input-icon-container input {
  background-color: #434343;
  border:1.5px solid #757575;
  color: #E0E0E0;
}
.dark-theme .input-icon {
  color: #757575;
} 
.dark-theme .form-label {
  color: #E0E0E0;
}
.dark-theme .signup-form-header {
  color: #E0E0E0;
}
.dark-theme .checkbox-container{
  color: #E0E0E0;
}
body.dark-theme{
  background-color: #323232;
}
.dark-theme .login-link {
  color: #B3B3B3;
}
.dark-theme .magic-link {
  background-color: #434343;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
}
.dark-theme .login-signup-link a {
  color: #B3B3B3;
}
.dark-theme .form-label1 {
  color: #E0E0E0;
}

.captcha-container {
  margin-top: 10px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.captcha-img {
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.captcha-input {
  width: 100%;
  padding-left: 44px;
  height: 48px;
  font-size: 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
  transition: border 0.2s;
  box-sizing: border-box;
}

.dark-theme .captcha-input {
  background-color: #434343 ;
  border: 1.5px solid #757575;
  color: #E0E0E0;
}