﻿﻿body {
    background-color: #f2f2f2;
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Ensures full height */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Login form container */
.login-container {
    width: 400px;
    max-width: 90%; /* Responsive for smaller screens */
    padding: 20px;
    background-color: #F7F9F9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: absolute; /* Keeps it centered */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers it in all resolutions */
}

/* For smaller screens */
@media only screen and (max-width: 768px) {
    .login-container {
        width: 80%;
        padding: 15px;
    }
}

/* For very small screens like mobile phones */
@media only screen and (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 10px;
    }
}

.login-container h2 {
    margin-bottom: 20px;
    margin-top: 10px;
    font-size: 24px;
    color: black;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #124E66;
    margin-bottom: 5px;
}
.required-label {
    position: relative;
    display: inline-block;
}

    .required-label::after {
        content: "*";
        color: red;
        position: absolute;
        top: -6px; /* Upar shift karne ke liye */
        right: -8px; /* Thoda right side shift karne ke liye */
        font-size: 14px;
        font-weight: bold;
    }
.input-field {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

    .input-field:focus {
        border-color: #004080;
        outline: none;
    }

.login-button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: white;
    background: linear-gradient(to bottom, #9cc3f2, #61a3f2);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    .login-button:hover {
        background-color: #A4D7E1;
        color: black;
    }

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .password-wrapper .icon {
        position: absolute;
        right: 10px;
        cursor: pointer;
        width: 25px;
        height: 25px;
    }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrapper .icon {
        position: absolute;
        right: 10px;
        cursor: pointer;
        width: 25px;
        height: 25px;
    }
.user-icon {
    position: absolute;
    right: 30px;
    cursor: pointer;
    width: 25px;
    height: 25px;
    margin-top: 5px;
}
.eye-icon {
    position: absolute;
    right: 30px;
    cursor: pointer;
    width: 25px;
    height: 25px;
    margin-top: 5px;
}

.forgot-password-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: #007BFF;
    text-decoration: none;
    font-size: 14px;
}

    .forgot-password-link:hover {
        text-decoration: underline;
        color: #0056b3;
    }

/* Modal container */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
}

/* Modal content */
.modal-content {
    position: relative; /* Ensure the close button is positioned relative to the modal content */
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 30%; /* Adjust width as needed */
}

/* Close button */
.close-modal {
    background: none;
    border: none;
    font-size: 2em;
    color: #666;
    cursor: pointer;
    position: absolute; /* Position relative to .modal-content */
    top: 10px;
    right: 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

    .close-modal:hover {
        color: #333; /* Darker shade when hovered */
    }

/* Modal heading */
.forgot-title {
    margin-top: 2px;
    margin-bottom: 2px;
    color: #333;
    font-size: 1.5em;
    justify-content: center;
    margin-left: 10px;
}


/* Reset button */
.reset-button {
    width: 100%;
    padding: 10px 15px;
    font-size: 1em;
    color: #fff;
    background-color: #007a8e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .reset-button:hover {
        background-color: #A4D7E1;
        color: black;
    }


/* Error message label */
.modal-content .error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 10px;
}

.login-label-checkbox {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    color: #124E66;
    margin-right: 5px; /* Space between label and checkbox */
    vertical-align: middle;
}

.login-input-check {
    vertical-align: middle;
}
