﻿body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #d3eafc;
    display: block;
    justify-content: center;
    align-items: center;
    height: 100vh;
    caret-color: transparent; /* Hide caret for all elements */
}

/* Additional styles for the password field and toggle icon */
.password-container {
    position: relative;
}

    .password-container input {
        padding-right: 20px; /* Space for the eye icon */
    }

    .password-container .toggle-password {
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        cursor: pointer;
        color: #555;
    }

        .password-container .toggle-password:hover {
            color: #000;
        }

/* Hide blinking text cursor from all elements except input fields */

* {
    user-select: none; /* Disable text selection */
    caret-color: transparent; /* Remove caret/blinking cursor */
}

/* Enable text selection and blinking text cursor for input fields only */
input, textarea {
    user-select: text; /* Enable text selection */
    caret-color: auto; /* Restore the blinking cursor */
}

    input[type="text"],
    textarea { /* Show caret for input fields and textareas */
        caret-color: black; /* Change this color to match your design */
    }


.login-container {
    display: flex;
    background-color: #0000007a;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.login-box {
    display: flex;
    flex-direction: row;
    width: 800px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.right-side {
    width: 50%;
    background-color: #e6f2ff;
}

    .right-side img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0 10px 10px 0;
    }

.left-side {
    padding: 40px;
    width: 50%;
    background-color: #ffffff;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        width: 50px;
        margin-right: 10px;
    }

h2 {
    margin: 0;
    color: #333;
}

h3 {
    color: #333;
    margin-top: 50px;
    margin-bottom: 10px;
}

p {
    color: #777;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

    .input-group label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
        color: #333;
    }

    .input-group input {
        width: 94%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
        color: #333;
    }

button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

    button:hover {
        background-color: #0056b3;
    }

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    .login-box {
        flex-direction: column;
        width: 90%;
        height: auto;
        border-radius: 0;
    }
    .password-container .toggle-password {
        position: absolute;
        top: 50%;
        right: 60px;
        transform: translateY(-50%);
        cursor: pointer;
        color: #555;
    }

    .left-side, .right-side {
        width: 100%;
    }

    .right-side {
        display: flex;
        justify-content: center;
        align-items: center;
        order: -1; /* Move image above the form */
    }

        .right-side img {
            border-radius: 10px 10px 0 0;
            height: 200px;
        }

    .left-side {
        padding: 20px;
    }

    .input-group input {
        width: 81vw;
    }

    button {
        font-size: 14px;
        width:84vw;
    }
}

@media (max-width: 480px) {
    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background-color: #d3eafc;
        display: block;
        margin-top: -80px;
        overflow-y: auto;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width: 100vw !important;
        caret-color: transparent;
    }
    .password-container .toggle-password {
        position: absolute;
        top: 50%;
        right: 40px;
        transform: translateY(-50%);
        cursor: pointer;
        color: #555;
    }


    .left-side {
        padding: 15px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 18px;
        margin-top:0px;
    }

    p {
        font-size: 14px;
    }

    .input-group input {
        padding: 8px;
        width: 88%;
        font-size: 14px;
    }

    button {
        padding: 8px;
        width: 93%;
        font-size: 14px;
    }
}
