* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: var(--font-family); */
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

.login-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.login-left {
    background: linear-gradient(135deg, var(--color-primary-t), var(--color-primary-dark-t)), url('../images/featured/housing_complex.jpg');
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    color: var(--color-white);
}

.login-right {
    height:100%;
    width: 55%;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--color-white);
    overflow-y: auto;
    position:relative;
}

.signup-right {
    padding: 1rem 2rem;
}

.logo {
    max-width: 180px;
    /* margin-inline:auto; */
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.featured-section {
    margin-top: 2rem;
}

.featured-section h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.featured-logos {
    display: flex;
    gap: 2rem;
}

.featured-logos img {
    max-height: 30px;
    opacity: 0.8;
}

.login-form {
    /* height:100%; */
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    padding-bottom:2em;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.signup-form {
    max-width: 600px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.google-btn:hover {
    background-color: var(--color-gray);
}

.google-btn img {
    height: 20px;
}

.divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
    color: var(--color-text-light);
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: var(--color-border);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s;
    border-radius:0.2em;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-control-file {
    padding: 0.5rem 0;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-privacy {
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    /* background-color: var(--color-success); */
    background: linear-gradient(-135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius:0.2em;
}

.btn-log{
    width: 100%;
    padding-block:1em;
}

.btn:hover {
    background-color: var(--color-primary-dark);
}

#error-msg{
    color:var(--error);
    font-weight:600;
    margin-block:0.5em;
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column-reverse;
        height: auto;
    }
    
    .login-left, .login-right {
        width: 100%;
    }
    
    .login-left {
        padding: 2rem;
    }
    
    .featured-logos {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .login-form {
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .login-left {
        padding: 1.5rem;
    }
    
    .login-right {
        padding: 1rem;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}