@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0;
  padding: 20px;
  background-color: #F6F9F8;
}

.main {
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px; /* Added max-width for better responsiveness */
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.main img {
  width: auto;
  height: 60px;
  margin-bottom: 20px;
}

.login-form h2 {
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 400;
  color: #000;
  text-align: left; /* Center align title */
}
.login-form h4 {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 550;
  color: #000;
}

.form-control {
  margin-bottom: 15px;
  padding: 10px; /* Increased padding for better touch targets */
  width: 100%;
  border: 1px solid #ffc000;
  border-radius: 5px;
  font-weight: 500;
  transition: 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #33a3e8;
  box-shadow: 0 0 8px rgba(51, 163, 232, 0.5);
}

.login-form>button {
  font-size: 16px;
  color: #000;
  width: 100%;
  background: #ffc000;
  border: none;
  padding: 10px; /* Increased padding for better touch targets */
  font-weight: 400;
  border-radius: 10px;
  transition: 0.3s ease;
}

.login-form>button:hover {
  background: #e6a600; /* Darken button on hover */
}

p.account a {
  color: var(--primary-color);
}

p.account a:hover {
  text-decoration: underline;
}

.powered-by {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9em;
  color: #666;
}

.powered-by a {
  color: #33a3e8;
  text-decoration: none;
}

.powered-by a:hover {
  text-decoration: underline;
}

.powered-by i {
  margin-right: 5px;
  color: #33a3e8;
}

.mobile-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-code-wrapper select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  width: 100px; /* Adjust width as needed */
  appearance: none;
  background-color: #f9f9f9;
}

.logo-container {
  margin-bottom: 20px; /* Adjust as needed */
  position: relative;
  top: 20px;
  left: 50%;
  transform: translateX(-50%); /* Center the logo */
  z-index: 1; /* Ensure it stays above other content */
}

input[name="mobile"],
input[name="contact_no"] {
  flex: 1;
  padding: 10px; /* Consistent padding */
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  margin-bottom: 15px;
}

.col-md-6 {
  flex: 1; /* Make columns take equal space */
  min-width: 220px; /* Minimum width for responsive design */
  padding-right: 10px; /* Space between columns */
}

.col-md-6:last-child {
  padding-right: 0; /* Remove right padding for last column */
}

/* Media Queries for Responsiveness */
@media (max-width: 600px) {
  .main {
    padding: 15px; /* Reduce padding for smaller screens */
  }

  .login-form h2 {
    font-size: 24px; /* Reduce font size for smaller screens */
  }

  .login-form h4 {
    font-size: 12px; /* Reduce font size for smaller screens */
  }

  .login-form button {
    font-size: 14px; /* Adjust font size for inputs and buttons */
  }
  .form-control {
    font-size: 14px; /* Adjust font size for inputs and buttons */
  }

  .row {
    flex-direction: column; /* Stack columns vertically on smaller screens */
    align-items: stretch; /* Stretch columns to fill available space */
  }

  .col-md-6 {
    padding-right: 0; /* Remove right padding for columns */
    margin-bottom: 10px; /* Add bottom margin for spacing */
  }

  .col-md-6:last-child {
    margin-bottom: 0; /* Remove margin for the last column */
  }
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="tel"],
input[type="file"],
textarea {
  padding: 0.4rem 1.5rem !important;
  width: 100% !important;
}

select {
  width: 100%;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid #a0a0a0;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #fff;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.1);
}

.upload-container {
  width: 100%;
  height: 100%;
  padding: 20px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  background-color: #fff;
  text-align: center;
  transition: border-color 0.3s;

  p {
    margin: 10px 0;
    color: #666;
  }

  img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
  }

  .hidden-input {
    display: none;
  }

  .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    &:hover {
      background-color: var(--primary-hover);
    }
  }
}

#image-modal {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none;
  img {
    width: 90%;
    height: 90%;
    object-fit: cover;
  }

  #close-btn {
    position: absolute !important;
    top: 10px;
    right: 10px;
    background-color: #fff;
    color: #000;
    border: none;
    font-size: 20px;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;

    &:hover {
      background-color: #ccc;
    }
  }
}

.upload-container.dragover {
  border-color: var(--primary-color);
}

.update-profile-button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #d6d6d6 !important;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  &:hover {
    color: #fff !important;
    background-color: #929191 !important;
    transform: scale(1.5s) !important;
    transition: all 0.3s ease-in-out !important;
  }
}



