body{
    margin: 0;
    padding: 0;
    font-family: Roboto;
    background-color:#F9EFDB;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    overflow: hidden;
  }
  
  .center{
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 27vw;
    height: auto;
    background: #DDFBD2;
    border-radius: 10px;
    border: 2px solid #3c1b13;
    /* -webkit-box-shadow: 8px 8px 24px 0px ;
    -moz-box-shadow: 8px 8px 24px 0px ;
    box-shadow: 8px 8px 24px 0px; */
  }

/* Base styles */
.header-login1 {
    margin-top: 1.5px;
    height: 5vw;
    width: 100%;
    background-color: #240201;
    display: flex;
    align-items: center;
}

.header-login1 img {
    height: 30px;
}

.header-nav-list {
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.header-nav-list p {
    font-size: 1.5vw;
    margin: 0 3px;
    color: white;
}

.header-login2 {
    height: 5vw;
    width: 100%;
    background-color: #370303;
}

.header-login2 img {
    position: relative;
    left: 5px;
    color: black;
}

/* Responsive styles */
@media only screen and (max-width: 768px) {
    .header-login1,
    .header-login2 {
        height: 10vw; /* Adjust height for smaller screens */
    }
    
    .header-login1 img {
        height: 20px; /* Adjust image height for smaller screens */
    }
    
    .header-nav-list p {
        font-size: 6vw; /* Adjust font size for smaller screens */
    }

    .center{
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 50vw;
      height: auto;
      background: #DDFBD2;
      border-radius: 10px;
      border: 2px solid #3c1b13;
    }
}

@media only screen and (max-width: 480px) {
    .header-login1,
    .header-login2 {
        height: 15vw; /* Adjust height for even smaller screens */
    }
    
    .header-login1 img {
        height: 15px; /* Adjust image height for even smaller screens */
    }
    
    .header-nav-list p {
        font-size: 5vw; /* Adjust font size for even smaller screens */
    }

    .center{
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 80vw;
      height: auto;
      background: #DDFBD2;
      border-radius: 10px;
      border: 2px solid #3c1b13;
    }

    .txt_field label {
      font-size:24; /* Increased font size by 2px */
  }


}


  /* .header-login3{
    margin-top:1px;
    height: 2vw;
    width: 100%;
    background-color: #370303;
  } */
   
/* Default styles for larger screens */
.center h1 {
  text-align: center;
  padding: 0 0 20px 0;
  border-bottom: 1px solid silver;
}

.center form {
  padding: 0 40px;
  box-sizing: border-box;
}

form .txt_field {
  position: relative;
  border-bottom: 2px solid #adadad;
  margin: 30px 0;
}

.txt_field input {
  width: 100%;
  padding: 0 5px;
  height: 40px;
  font-size: 16px;
  border: none;
  background: none;
  outline: none;
}

.txt_field label {
  position: absolute;
  top: 50%;
  left: 5px;
  color: #FFB534;
  transform: translateY(-50%);
  font-size: 1.2em; /* Responsive font size */
  pointer-events: none;
  font-weight: 500;
}

.txt_field span::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 0px;
  height: 2px;
  background: #2691d9;
  transition: .5s;
}

.txt_field input:focus ~ label,
.txt_field input:valid ~ label {
  top: -5px;
  color: #2691d9;
}

.txt_field input:focus ~ span::before,
.txt_field input:Valid ~ span::before {
  width: 100%;
}

.pass {
  margin: -5px 0 20px 5px;
  color: #a6a6a6;
  cursor: pointer;
}

.pass:hover {
  text-decoration: underline;
}

input[type="Submit"] {
  width: 100%;
  height: 40px;
  border: 1px solid;
  border-radius: 25px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 5px;
}

input[type="Submit"]:hover {
  background: #2691d9;
  color: #e9f4fb;
  transition: .5s;
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
  .center form {
      padding: 0 20px;
  }

  .txt_field label {
      font-size: 1em; /* Adjusted font size for smaller screens */
  }
}

/* Media queries for specific Android device resolutions */
@media only screen and (max-device-width: 480px) and (orientation: portrait) {
  /* Adjustments for smaller Android screens in portrait orientation */
  .center form {
      padding: 0 10px;
  }

  .txt_field label {
      font-size: 1em; /* Adjusted font size for smaller Android screens */
  }
}

@media only screen and (max-device-width: 800px) and (orientation: landscape) {
  /* Adjustments for larger Android screens in landscape orientation */
  .center form {
      padding: 0 30px;
  }

  .txt_field label {
      font-size: 1.2em; /* Adjusted font size for larger Android screens */
  }
}

  .signup_link{
    margin: 30px 0;
    text-align: center;
    font-size: 16px;
    color: #666666;
  }
  
  .signup_link a{
    color: #2691d9;
    text-decoration: none;
  }
  
  .signup_link a:hover{
    text-decoration: underline;
  }
  
  .HomeAbout{
    width: 100vw;
    height: 25vh;
  }
  
  
  /* emergency portal */
  /* SOS Button Styles */
  .sos-button h1{
    color:black;
  }
  .findlocation{
    height: 300px;
    width: 300px;
    background-color: red;
    border-radius: 50%;
    font-size: xx-large;
  }

  .sos-button a{
    font-size: xx-large;

  }

.sos-button {
  width: 100vw;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding: 10px 10px; */
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
  /* background-color: red; */
  color: rgb(0, 0, 0);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.sos-button button:hover {
  background-color: darkred;
}

.sos-button button:active {
  background-color: #cc0000;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .sos-button {
    font-size: 14px;
    /* padding: 8px 16px; */
  }
}

@media screen and (max-width: 480px) {
  .sos-button {
    font-size: 14px;
    /* padding: 8px 16px; */
  }
}
