@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3f4f6;
    color: #333;
}

.welcome-page {
    display: flex;
    width: 100%;
    height: 100vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgb(0 0 0 / 0.2);
}

.welcome-left {
    flex: 1;
    background: url('../img/bannerimg.jpg') no-repeat center center/cover;
    position: relative;
}

.welcome-left::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 0.3); 
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    text-shadow: 0 2px 5px rgb(0 0 0 / 0.5);
    z-index: 2;
}

.welcome-right {
    flex: 1;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
}

.welcome-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    text-align: left;
}

.login-form {
    width: 100%;
    max-width: 350px; 
    text-align: center;
}

.looped-in {
    color: #007bff;
}

.login-form h2 {
    font-size: 40px;
    margin-bottom: 16px;
    color: #333;
}

.error p {
    visibility: hidden; 
    height: 30px;
    margin-top: 16px;
    color: rgb(255, 0, 0);
    transition: visibility 0.3s, opacity 0.3s ease-in-out;
}

.login-form p.visible {
    visibility: visible;
    opacity: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    font-size: 18px; 
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #007bff;
}

.forgot-p {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    margin-bottom: 20px;
}

.forgot-p a {
    text-align: left;
    text-decoration: none;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #007bff; 
    vertical-align: middle; 
}

.remember-me label {
    cursor: pointer;
}

.form-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    flex: 1;
    padding: 12px;
    font-size: 18px; 
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login {
    background-color: #007bff;
    color: #fff;
}

.btn-login:hover {
    background-color: #0056b3;
}

.btn-signup {
    background-color: #ddd;
    color: #333;
}

.btn-signup:hover {
    background-color: #bbb;
}

.social-login {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-google {
    background-color: #db4437;
    color: #fff;
    padding-right: 40px;
}

.btn-facebook {
    background-color: #3b5998;
    color: #fff;
}

.btn-google:hover, .btn-facebook:hover {
    opacity: 0.9;
}

.terms {
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

.terms a {
    color: #007bff;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    html, body {
        height: 100%;
    }

    .welcome-page {
        flex-direction: column;
        height: 100%;
    }

    .welcome-text {
        display: none;
    }

    .welcome-left::before {
        display: none;
    }

    .welcome-right {
        flex: none;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        background: url('../img/bannerimg.jpg') no-repeat center center/cover;
    }

    .login-form {
        width: 90%;
        max-width: 350px;
        padding: 32px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgb(0 0 0 / 0.1);
        position: relative;
    }

    .login-form h2 {
        font-size: 28px;
        margin-top: 0; 
        color: #000;
    }

    .overlay {
        display: none;
    }

    .login-form p {
        text-align: center;
        font-size: 16px;
    }

    .social-login {
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}
