* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f7f7f7;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    flex-direction: row; 
    justify-content: space-between;
    overflow-x: hidden;
}

.login-resident-logo-section {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; 
    margin-left: 150px; 
}

.login-resident-logo {
    max-width: 80%;
    max-height: 80%;
}

.login-resident-form-section {
    width: 60%;
    padding: 40px; /* Main padding for internal spacing */
    margin-right: 150px; /* Adjustable margin to control position */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h1 {
    font-size: 30px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    margin-top: 50px;
}

.login-residents-text {
    color: #2db1dd;
}

p {
    font-size: 15px;
    color: #555;
    margin-bottom: 50px;
}

.login-input-container {
    position: relative;
    margin-bottom: 15px;
}

.login-input-field {
    width: 100%;
    padding: 12px 12px 12px 40px;
    margin-bottom: 15px;
    border: 1px solid black;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    display: block;
    min-width: 400px;
}

.login-input-container i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: black;
}

.login-input-container i.fa-envelope {
    left: 12px;
}

.login-input-container i.fa-lock {
    left: 12px;
}

.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;
}

.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);
}

.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;
}

/* For responsiveness */
@media (max-width: 768px) {
    body {
        flex-direction: column; /* Stack logo and form vertically */
        justify-content: flex-start; /* Align at the top */
        padding: 20px;
    }

    .login-resident-logo-section {
        width: 100%;
        margin-left: 0;
        margin-bottom: -50px; /* Space between logo and form */
    }

    .login-resident-form-section {
        width: 100%;
        padding: 20px;
        margin-right: 0;
    }

    .login-input-field {
        width: 100%; 
        min-width: 100%; 
    }

    .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 {
        font-size: 14px; 
    }

    .login-button {
        font-size: 14px; 
    }
}
}

/* REGISTRATION PAGE */
body.registration-page {
    background-color: #f7f7f7;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 10px;
}

/* Main Wrapper */
.register-container {
    width: 100%;
    max-width: 1000px; /* Further reduce width */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

/* Form Container */
.register-form-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px; /* Reduced padding */
    width: 100%;
    max-width: 900px; /* Reduced max-width */
    margin-top: 20px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo Section */
.register-logo-section {
    margin-bottom: 0px; /* Reduced space between logo and heading */
}

/* Heading */
.register-heading {
    font-size: 24px; /* Adjusted heading size */
    color: #333;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 15px; /* Reduced space between heading and form */
    font-weight: bold;
}

.register-resident-logo {
    max-width: 90px; /* Reduced logo size */
    max-height: 90px;
}

.register-text {
    color: #2db1dd;
}

/* Form Fields */
.register-form-input-container {
    width: 100%;
    margin-bottom: 10px; /* Reduced margin */
}

.register-input-field {
    width: 100%;
    padding: 8px; /* Reduced padding */
    font-size: 14px; /* Reduced font size */
    border: 1px solid black;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Form Layout (Rows) */
.register-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap; /* Allow form fields to stack when necessary */
}

.register-row .register-form-input-container {
    flex: 1;
    min-width: 180px; /* Reduced min-width */
}

/* Adjust specific layout for status and file upload */
.register-file-input-container {
    flex: 1; /* Allow it to take space similar to other form inputs */
    min-width: 180px; /* Adjust size for the file input */
}


/* Gender Radio Buttons */
.gender-options {
    display: flex;
    gap: 12px; /* Reduced gap */
}

.gender-options input[type="radio"] {
    margin-right: 5px;
}

/* File Upload Section */
.register-file-input-container {
    margin-bottom: 10px; /* Reduced margin */
}

.register-file-input {
    width: 100%;
    padding: 8px; /* Reduced padding */
    font-size: 14px; /* Reduced font size */
    border: 1px solid black;
    border-radius: 5px;
    margin-top: 5px;
    box-sizing: border-box;
}

.register-label {
    display: block;
    font-size: 13px; /* Reduced font size */
    margin-bottom: 5px;
    color: #333;
}

/* Submit Button */
.register-submit-button {
    width: 100%;
    padding: 12px; /* Reduced padding */
    background-color: #0d0eee;
    color: white;
    font-size: 14px; /* Reduced font size */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px; /* Reduced margin */
}

.register-submit-button:hover {
    background-color: rgb(60, 63, 243);
}

/* Contact Message */
.register-contact-message {
    margin-top: 15px; /* Reduced margin */
    font-size: 15px; /* Reduced font size */
    text-align: center;
    color: #666;
}

.register-contact-message a {
    color: red;
    text-decoration: none;
    font-size: 15px;
}

.register-contact-message a:hover {
    text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .register-form-container {
        padding: 15px;
        width: 90%;
    }

    .register-heading {
        font-size: 20px; /* Further reduced font size */
    }

    .register-row {
        flex-direction: column;
        gap: 10px;
    }

    .register-row .register-form-input-container {
        width: 100%;
    }

    .register-submit-button {
        font-size: 12px; /* Further reduced font size */
    }

    .register-input-field {
        font-size: 12px; /* Further reduced font size */
    }
}

@media (max-width: 480px) {
    .register-heading {
        font-size: 18px; /* Further reduced font size */
    }

    .register-input-field {
        font-size: 11px; /* Further reduced font size */
    }

    .register-submit-button {
        font-size: 11px; /* Further reduced font size */
    }
}
