/* Global Styles */
body {
    margin: 0;
    padding: 0;
    background-color: #000; /* Pure black background */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: Arial, sans-serif;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
  
.login-container {
    position: relative;
    z-index: 2;
}


/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}
  
/* Login Box */
.login-box {
    display: flex;
    flex-direction: row;
    background-color: #1e1e1e; /* Dark gray background for the box */
    color: #fff;
    border-radius: 10px;
    overflow: hidden;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    min-height: 400px;
    justify-content: center;
    align-items: center;
}
  
/* Logo Section */
.logo-section {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}
  
.logo-section img {
    width: 50px;
    height: auto;
}
  
/* Image Section */
.image-section {
    flex: 1;
    background: #000; /* Fallback to pure black if the image fails to load */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items at the top */
    overflow: hidden;
    position: relative;
}
  
.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the area */
    object-position: top center; /* Focus on the top of the image */
}
  
/* Handle Broken Image */
.image-section img::before {
    content: "Image Not Available";
    color: #fff;
    font-size: 14px;
    text-align: center;
}
  
/* Form Section */
.form-section {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%; /* Ensure the form takes full height */
}
  
/* Form Header */
.form-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #fff;
}
  
/* Form Paragraph */
.form-section p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #fff;
}
  
/* Input Fields */
.form-section input,
.form-section button {
    width: 100%;
    padding: 10px;
    margin: 0 0 15px 0; /* Consistent margin */
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 14px; /* Set a consistent font size for both elements */
    background-color: #333;
    color: #fff;
    box-sizing: border-box; /* Ensure padding and borders are included in width */
}
  
.form-section button {
    background-color: #D7A54E;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px; /* Adjust margin if necessary */
}
  
.form-section button:hover {
    background-color: #EBCB92;
}
  
/* Link to Login Page */
.login-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}
  
.login-link a {
    text-decoration: none;
    color: #D7A54E;
    font-weight: bold;
}
  
.login-link a:hover {
    text-decoration: underline;
}

/* Validation Messages */
.iAfter {
    border: 2px solid red !important; /* Highlight input with error */
}
  
.validation {
    margin-top: 0;
    margin-left: 5px;
    font-size: 12px; /* Adjust font size of validation messages */
}
  
.iValid {
    color: red !important; /* Color for invalid messages */
}
  
/* Responsive Design */
@media (max-width: 768px) {
    /* Stack the logo and image section */
    .login-box {
        flex-direction: column; /* Stack the image on top and form below */
    }
  
    /* Make the image section have a height limit */
    .image-section {
        height: 250px; /* Limit height of image section for smaller screens */
    }
  
    .image-section img {
        object-position: top center; /* Ensure face area is focused */
        height: 30vh;
        display: none; /* Hide image on small screens */
    }
  
    /* Adjust input and button padding for smaller screens */
    .form-section input,
    .form-section button {
        padding: 8px; /* Reduce padding for smaller screens */
        font-size: 12px; /* Adjust font size */
    }
  
    .form-section h2 {
        font-size: 20px; /* Smaller font size for header */
    }
}
  
@media (max-width: 480px) {
    /* Even more compact layout for very small screens */
    .image-section {
        height: 200px; /* Further reduce image section height */
    }
  
    .image-section img {
        object-position: top center; /* Keep focus on top for smaller screens */
        display: none; /* Hide image on very small screens */
    }
  
    /* Further reduce the padding and font sizes */
    .form-section input,
    .form-section button {
        padding: 6px; /* Less padding */
        font-size: 12px;
    }
  
    .form-section h2 {
        font-size: 18px; /* Smaller font size for header */
    }
}