/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('assets/images/bg_barangay.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; /* Maintains aspect ratio and covers the whole screen */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h3 {
    color: #2c3e50;
    text-align: center;
}

p {
    text-align: center;
    color: #555;
    font-size: 18px;
    margin: 20px 0;
}


/* Login Container Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 85px auto;
    max-width: 400px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.login-container img {
    max-width: 40%;
    border-radius: 5px;
    margin-right: 40px;
}

/* Login Form Styles */
.login-form {
    flex-grow: 1;
}

.login-form h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 95%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-form input[type="submit"] {   
    width: 30%;  
    padding: 10px;   
    background-color: #1d1c67;   
    color: white;  
    border: none;  
    border-radius: 25px; /* More rounded */   
    cursor: pointer;   
    font-size: 12px;
    display: block;
    margin: 10px auto; /* Auto centers horizontally */
    text-align: center;
}

.login-form input[type="submit"]:hover {  
    background-color: #1a1a52;
}


.login-form label {
    display: block;
    margin: 10px 0 1px;
    font-weight: 500;
    color: #2c3e50;
}


.forgot-password {   
    text-align: right; /* Aligns text to the left */ 
    margin-top: 5px; /* Adds space above the link */   
    margin-left: 0; /* Optional: ensures no left indentation */
}

.forgot-password a {
    color: #1d1c67; /* Matches the link color with your design */
    text-decoration: none; /* Underlines the link */
    font-size: 14px; /* Adjust font size for readability */
    transition: color 0.3s; /* Adds a smooth transition for hover effect */
}

forgot-password a:hover {
    color: #3c4a6a; /* Darker shade on hover */
}

.password-container {   
    position: relative;
}

.password-icon {
    position: absolute;
    right: -5px;
    top: 80%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 50px;
    height: 50px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: transparent; /* Keeps the background clear */
    color: white;
    font-size: 16px;
    top: 0;
    left: 0;
    width: 96.5%;
}
header span{
    font-weight: bold;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo and text */
    margin-right: 50px;
}

.logo img {
    width: 70px; /* Adjust logo size */
    height: auto;
}

.datetime {
    font-size: 16px;
    color: white;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers both the title and form */
}

.title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: -70px; /* Adds spacing between the title and login box */
    text-align: center;
    color: white;
}

.login-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 350px;
}