@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://cdn.jsdelivr.net/npm/sweetalert2@11.7.0/dist/sweetalert2.min.css');
/* General styling */
body{
    margin: 0px;
    padding: 0px;
    font-family: 'Noto Serif','Merriweather', 'Lora','Crimson Pro';
  }
.header {
    box-sizing: border-box;
    padding: 5px;
    display: flex;
    flex-wrap: wrap; /* Allow elements to wrap */
    justify-content: space-between;
    position: relative;
    width: 100%;
    background: url('bg2.jpg');
    background-repeat: repeat-x; /* Repeats the image horizontally */
    background-size: auto 100%; /* Adjusts the height to 100% and width automatically */
    z-index: 5;
  }
  
  .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(122, 240, 132, 0.5); /* Semi-transparent green overlay */
    z-index: -2; /* Ensure it stays behind the content */
    opacity: 0.4; /* Optional: Adjust opacity for blending */
  }
  
  .header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('bg2.jpg');
    z-index: -1; /* Ensure the image stays behind the content but above the background color */
    opacity: 0.5; /* Optional: Adjust opacity for blending */
  }
  
  .logo, #logo {
    height:100px;
    object-fit: contain;
    box-sizing: border-box;
    z-index: 10;
  }

  /* General Styles */
  /* General Styles */
  /* Media Query for Small Screens */
  



/* General Styling */
.register_parent {
    display: flex;
    justify-content: center;
    align-items: center;
   
}
 .signup {
    background-color: #fff;
    padding: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    width: 90%;
    max-height: fit-content;
    margin-top: 20px;
    max-width: 400px;
}

.header2 {
    font-size: 24px;
    color: #333;
    text-align: center;
}
 form {
    display: flex;
    flex-direction: column;
}

input[type="email"],
input[type="text"],
input[type="password"],
input[type="submit"]{
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #007bff;
    outline: none;
}


button, .captcha1 #refresh, .captcha-container #refresh{
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button, .captcha1 #refresh:hover, .captcha-container #refresh {
    background-color: #007bff;
}

/* CAPTCHA Styling - Flexbox layout for CAPTCHA and Refresh button */
.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between CAPTCHA canvas and CAPTCHA input */
    margin-bottom: 20px;
}

.captcha1 {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between CAPTCHA canvas and refresh button */
}
#captcha{
border: 1px solid #ddd;
border-radius: 5px;
transition: border-color 0.3s ease;
width: 200px;
height: 50px;
}


#refresh {
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#refresh:hover {
    background-color: #218838;
}

#captchaInput {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 14px;
    width: 92%;
    margin-bottom: 15px;
}

/* OTP Section Styling */
#otp_section {
    margin-top: 20px;
}

/* Link styling */
.signup p, .login p {
    text-align: center;
    font-size: 18px;
    color: #555;
}

.signup p a, .login p a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.signup p a, .login p a :hover {
    color: #0056b3;
}


.login_container_parent {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px;
    
  }
  
  .login_container{
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    margin-top: 20px;
    border: 2px solid rgb(224, 224, 224);
  }

  .header2 {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .header2 a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .header2 a:hover {
    color: #0056b3;
  }
  
  #login {
    display: flex;
    flex-direction: column;
  }
  
  #login_form {
    display: flex;
    flex-direction: column;
  }
  
  input[type="email"]:focus,
  input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
  }
  
  button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  button:hover {
    background-color: #0056b3;
  }
  .swal2-popup {
    font-size: 18px;  /* Default font size */
    width: 30%;       /* Default width */
}
  .swal2-title {
      font-size: 28px;  /* Default font size */
  }

@media screen and (max-width: 768px) { /* Adjust the breakpoint as needed */
    .header {
        flex-direction: column; /* Stack elements vertically */
        align-items: flex-start; /* Stack elements vertically */
    }
    .logo, .loginall {
        width: 100%; /* Make both elements occupy full width */
        flex-direction: column;
    }
    .login_container, .register_parent{
      padding: 10px;
      width: 90%;
    }
      
    button {
      padding: 8px 10px;
      font-size: 14px;
      margin-bottom: 10px;
    }
    #login p, .signup p, .login p {
      font-size: 14px;
      padding: 8px;
      margin: 0px;
    }
  
    .logo, #logo {
      height:70px;
      object-fit: contain;
      box-sizing: border-box;
  }
  .signup {
      padding: 20px;
      width: 90%;
      max-height: fit-content;
      margin-top: 10px;
  }
  .header2{
    margin: 10px 0 10px 0;
    font-size: 20px;
  }

  input[type="email"],
  input[type="text"],
  input[type="password"],
  input[type="submit"]{
      padding: 10px;
      margin-bottom: 15px;
      font-size: 14px;
  }

  #captcha{
    width: 200px;
    height: 50px;
    padding: 5px;
  }

  #refresh {
      padding: 5px 8px 5px 8px;
      font-size: 12px;

  }
  button, .captcha1 #refresh, .captcha-container #refresh, .captcha2 #captchaInput{
    padding: 8px 10px;
    font-size: 14px;
  }
  .swal2-popup {
    font-size: 14px;  /* Smaller font size */
    width: 50%;
    max-width: 100px;       /* Adjust modal width */
  }
  .swal2-title {
      font-size: 20px;  /* Default font size */
  }

}