/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  color: #333;
}

/* Header Section */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #fff;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo span {
  margin-left: 10px;
  font-size: 24px;
  font-weight: bold;
}

/* Navigation */
nav ul {
  display: flex;
  list-style-type: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #f0f0f0;
}

/* Login Button */
.login-btn {
  background-color: #182570d3;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: #142a6f;
}
/* Styles for the hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.bar {
  width: 100%;
  height: 4px;
  background-color: #333;
  transition: all 0.3s ease;
}

/* When the hamburger is active, transform it into a cross */
.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Media query to display the hamburger menu on smaller screens */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
  }

  .nav-links.active {
    display: flex;
  }
}


/* Main Section */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: calc(100vh - 160px); /* Adjust based on header and footer height */
}

.signup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.form-container {
  background-color: #fff;
  padding: 40px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  width: 400px;
}

.form-container h1 {
  margin-bottom: 10px;
  font-size: 28px;
}

.form-container p {
  margin-bottom: 20px;
  color: #666;
}

label {
  font-size: 14px;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

input[type="email"],
input[type="password"],
input[type="tel"],
input[type="text"],
input[type="file"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.phone-input-container {
  position: relative;
}

#phone {
  padding-right: 40px; /* Add padding for the OTP icon */
  height: 40px;
}

.otp-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  cursor: pointer;
  pointer-events: auto;
}

.signup-btn {
  width: 100%;
  padding: 12px;
  background-color: #182570d3;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.signup-btn:hover {
  background-color: #142a6f;
}

.already-have-account {
  text-align: center;
  margin-top: 15px;
}

.already-have-account a {
  color: #182570d3;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.already-have-account a:hover {
  color: #142a6f;
}

/* Footer Section */
footer {
  text-align: center;
  padding: 20px;
  background-color: #fff;
  color: #777;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */

/* For Tablets and below */
@media only screen and (max-width: 1024px) {
  .form-container {
    width: 350px;
    padding: 30px;
  }
}

/* For Mobile Devices */
@media only screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    display: none; /* Hidden by default, shown when hamburger is active */
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 70px; /* Adjust based on header height */
    left: 0;
    right: 0;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul li {
    margin: 10px 0;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  main {
    padding: 10px;
    min-height: calc(100vh - 160px);
  }

  .form-container {
    width: 100%;
    max-width: 400px;
    padding: 30px 20px;
  }

  .signup-container {
    padding: 10px;
  }
}

/* For Small Mobile Devices */
@media only screen and (max-width: 576px) {
  .form-container {
    padding: 20px 15px;
  }

  .signup-btn {
    padding: 10px;
    font-size: 14px;
  }

  .logo span {
    font-size: 20px;
  }

  .form-container h1 {
    font-size: 24px;
  }

  .form-container p {
    font-size: 14px;
  }

  label {
    font-size: 13px;
  }

  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="text"],
  input[type="file"] {
    padding: 8px;
    font-size: 14px;
  }

  .otp-icon {
    width: 20px;
    height: 20px;
  }

  .login-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}
