/* Form Styles*/

.popup {
  display: none;
  position: fixed;
  top: 0;
  z-index: 999;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #424242c5 0%, #444444a8 100%);
}


.form-container {
  overflow: hidden;
  background: white;
  /* padding: 1.5rem; */
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-height: 95vh;
  max-width: 450px;
  position: relative;
}

.food-img {
  width: 250px;
  position: absolute;
  top: -70px;
  right: -100px;
}

.form-container svg {
  z-index: 0;
  border-radius: 1rem 1rem 0 0;
  max-width: 450px;
  position: fixed;
  margin: 0px;
}

.main-form {
  margin-top: 5px;
  z-index: 1;
  padding: 1.5rem;
}

.logo {
  z-index: 12;
  width: 60px;
  height: 30px;
  /* background: #ff6b6b; */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.form-title {

  margin-top: -50px;
  text-align: left;
  margin-bottom: 1rem;
}

.form-title h2 {
  z-index: 9999999;
  color: #1a202c;
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0;
}

.form-title p {
  color: #4a5568;
  margin-top: 0.5rem;
}

.form-group {
  margin-bottom: 0.5rem;
}

.form-label {
  font-size: 14px;
  display: block;
  color: #4a5568;
  margin-bottom: 4px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 14px;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border: 2px solid #ff6b6b;
  background-color: #fff5f5;
  color: #422323;
  /* border-color: #ff6b6b; */
  /* box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2); */
}

.user-type-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.user-type-option {
  flex: 1;
}

.user-type-input {
  display: none;
}

.user-type-label {
  display: block;
  padding: 0.75rem;
  font-size: 13px;
  text-align: center;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.swith {
  cursor: pointer;
  padding: 10px 0px 0px 0px;
  background-color: transparent;
  color: #ff6b6b;
  border: none;

  &:hover {
    color: #ff5252;
  }
}

.user-type-input:checked+.user-type-label {
  border-color: #ff6b6b;
  background-color: #fff5f5;
  color: #ff6b6b;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem;
  background-color: #ff6767;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background-color: #ff5252;
}

.forgot-password {
  display: block;
  color: #4a5568;
  text-decoration: none;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.forgot-password:hover {
  color: #ff6b6b;
}


/* Component-specific styles */
.user-type-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.user-type-option {
  flex: 1;
}

.user-type-input {
  display: none;
}

.user-type-label {
  display: block;
  padding: 0.75rem;
  text-align: center;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-link {
  display: block;
  text-align: center;
  color: #4a5568;
  text-decoration: none;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.auth-link:hover {
  color: #ff6b6b;
}

.name-fields {
  display: flex;
  gap: 1rem;
}

.name-fields .form-group {
  flex: 1;
}

.terms {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.terms input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  accent-color: #ff6b6b;
}

.terms label {
  color: #4a5568;
  font-size: 12px;
}

.terms a {
  color: #ff6b6b;
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

@media (max-width:640px) {
  .container {
    margin: 0px 5px;
    padding: 10px;
    min-height: 100vh;
  }


  .form-container {
    overflow: hidden;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    min-height: 400px;
    max-width: 470px;
    position: relative;
  }


  .main-form {
    margin-top: 25px;
  }

  .form-title h2 {
    z-index: 9999999;
    color: #1a202c;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
  }

  .submit-button {
    width: 100%;
    padding: 10px;
    background-color: #ff6767;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  .already{
    position: relative;
    top: -30px;
    text-align: center;
    margin-left: 10px;
  }
}

/* xsm*/
@media (max-width: 475px) {
  body{
    overflow-x: hidden;
  }
  .form-container {

    overflow-y: scroll;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    min-height: 320px;
    max-width: 90%;
    position: relative;
  }

  .main-form {
    margin-top: 5px;
    z-index: 1;
    padding: 1rem;
  }
  .food-img {
    width: 200px;
    position: absolute;
    top: -60px;
    right: -100px;
  }

  .user-type-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }
  
  .user-type-option {
    flex: 1;
  }
  
  .user-type-input {
    display: none;
  }
  
  .user-type-label {
    display: block;
    padding: 7px 15px;
    font-size: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .swith {
    cursor: pointer;
    padding: 5px 0px 0px 0px;
    background-color: transparent;
    color: #ff6b6b;
    border: none;
    font-size: 12px;
    &:hover {
      color: #ff5252;
    }
  }
  
  .user-type-input:checked+.user-type-label {
    border-color: #ff6b6b;
    background-color: #fff5f5;
    color: #ff6b6b;
  }

  .form-input {
    width: 100%;
    padding: 0.50rem ;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 14px;
    transition: all 0.2s;
  }

  .form-label {
    font-size: 12px;
  }

  .terms {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .terms input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: #ff6b6b;
  }
  
  .terms label {
    color: #4a5568;
    font-size: 8px;
  }

  .form-title p {
    color: #4a5568;
    margin-top: 0.5rem;
    font-size: 12px;
  }
  
  .forgot-password {
    display: block;
    color: #4a5568;
    text-decoration: none;
    margin-top: 1rem;
    font-size: 12px;
  }

  .already{
    position: relative;
    top: -30px;
    text-align: center;
    margin-left: 10px;
  }
  
  
}