* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    background-color: #f7f7f7;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row; 
    height: 100vh;
    overflow-x: hidden;
}

/* Logo Section */
.login-resident-logo-section {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; 
    margin-left: 150px; 
}

.login-resident-logo {
    max-width: 90%;
    max-height: 90%;
}

/* Form Section */
.login-resident-form-section {
    width: 60%;
    padding: 40px;
    margin-right: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Heading inside form */
.login-resident-form-section h1 {
    margin-top: 50px; 
    margin-bottom: 10px;
    font-size: 30px;
    color: #333;
}

.login-resident-form-section p {
    font-size: 15px;
    color: #555;
    margin-bottom: 50px;
}

.login-residents-text {
    color: #2db1dd;
    margin-bottom: 50px;
}

/* Input Fields */
.login-input-container {
    position: relative;
    margin-bottom: 15px;
}

.login-input-field {
    width: 100%;
    padding: 12px 40px 12px 40px; /* left space for icon, right space for eye */
    border: 1px solid black;
    border-radius: 10px;
    font-size: 16px;
    min-width: 100px;
    box-sizing: border-box;
}

/* Left icons */
.login-input-container i.fa-envelope,
.login-input-container i.fa-lock {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 18px;
    color: black;
}

/* Eye icon on the right */
.eye-icon {
    position: absolute;
    right: 12px;        /* sticks to the far right */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 18px;
    z-index: 10;
}

/* Messages */
.message {
    color: red;
    font-size: 12px;
}

/* Forgot password */
.login-forgot-password {
    display: block;
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 25px;
    text-align: right;
}

.login-forgot-password:hover {
    text-decoration: underline;
}

/* Button */
.login-button {
    padding: 12px;
    background-color: #0d0eee;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    min-width: 500px;
}

.login-button:hover {
    background-color: rgb(60, 63, 243);
}

/* Contact message */
.login-contact-message {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.login-contact-message a {
    color: red;
    text-decoration: none;
}

.login-contact-message a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        justify-content: flex-start;
        padding: 20px;
    }

    .login-resident-logo-section {
        width: 100%;
        margin-left: 0;
        margin-bottom: -50px;
    }

    .login-resident-form-section {
        width: 100%;
        padding: 20px;
        margin-right: 0;
    }

    .login-input-field,
    .login-button {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .login-resident-logo {
        max-width: 60%; 
    }

    h1 {
        font-size: 24px; 
    }

    p {
        font-size: 14px; 
    }

    .login-input-field,
    .login-button {
        font-size: 14px; 
    }
}