/* Default Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  font-family: sans-serif;
}

._header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: #4A90E2;
}

.container {
  background-color: #fff;
  border: 1px solid #8d8d8d;
  border-radius: 20px;
  padding: 30px;
  max-width: 800px;
  width: 50%; /* CHANGED: width used to be fixed, now percentage */
}

.child {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /*allows wrapping on smaller screens */
}

.logo {
  max-width: 100%;
  width: 100%;
  height: auto;
}

.form-container {
  flex: 2;
  width: 100%; /* ensure full width on smaller screens */
}

.heading {
  font-size: 35px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.heading2{
  font-size: 35px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.input-field {
  width: 100%;  
  display: flex;
  position: relative;
  justify-content: center; 
}

.input-field input {
  width: 80%;
  max-width: 400px; 
  padding: 10px 15px;
  border: 1px solid #8d8d8d;
  border-radius: 8px;
  font-size: 1rem;
  margin: 0 auto; 
}

.input-field label {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #8d8d8d;
  pointer-events: none;
  transition: 0.3s;
  background-color: white;
  padding: 0 5px;
}

.input-field input:focus + label,
.input-field input:valid + label {
  top: 0;
  transform: translateY(-50%) scale(0.8);
  color: black;
  font-weight: bold;
}

.subtext-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}

.form-check {
  font-size: 0.9rem;
  margin-left: 40px;
}

.btn-container {
  display: flex;
  justify-content: right;
  margin-right: 50px;
}

.form .btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 15px;
  border: solid 1px #8d8d8d;
  cursor: pointer;
  background-color: #2E6DB5;
  color: white;
  font-weight: normal;
  transition: all 0.2s ease;
}

.btn:hover {
  font-weight: bold;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.acc-text {
  font-size: 15px;
  text-align: center;
  margin-top: 20px;
}

/* For tablets and small desktops */
@media screen and (max-width: 768px) {
  .container {
    width: 90%; 
    padding: 20px;
  }

  .child {
    flex-direction: column;
    gap: 20px;
  }

  .logo {
    width: 60%; 
  }

  .form-container {
    width: 100%; 
  }

  .input-field input {
    width: 90%;
  }

  .form-check {
    margin-left: 0; 
    text-align: center;
  }

  .btn-container {
    justify-content: center;
    margin-right: 0;
  }
}

/* For mobile phones */
@media screen and (max-width: 480px) {
  .heading {
    font-size: 24px;
  }

  .input-field label {
    left: 30px;
  }
}

.back-arrow {
  font-size: 18px;
  cursor: pointer;
  margin-bottom: 10px;
}

.logo-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vetcare-text {
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
}

.right-panel {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.subtext {
  font-size: 14px;
  color: #666;
}

.forgot-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.input-field-plain {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #aaa;
  border-radius: 5px;
  width: 100%;
  max-width: 350px;
}

.search-btn {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  background-color: #4A90E2;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  width: fit-content;
  margin-top: 10px;
}

.search-btn:hover {
  background-color: #3a7bc8;
}
