/* Base styles for larger screens */
.login-body {
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 0;
}

.login-section {
    width: 100%;
    max-width: 510px;
    padding: 40px;
    background: #fff;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .1);
    border: 1px solid #E8E8E8;
    border-radius: 10px;
    box-sizing: border-box;
    height: 550px;
}

.login-section h1 {
    font-weight: bold;
    font-size: 25px !important;
}

.login-button-box {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 20px !important;
}

.login-button {
    width: 50%;
    padding: 15px;
    color: #7B56E0;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid #7B56E0;
    background-color: white;
}

.password-reset-text {
    color: #007bff;
    text-decoration: none;
}

.password-reset-text:hover {
    text-decoration: none;
}

.login-input {
    margin: 45px 0px 25px 0px;
}

.input-common {
    margin-bottom: 4px !important;
}

.input-group {
    position: relative;
    margin: 20px 0;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #7e7c7c;
    padding: 0 5px;
    pointer-events: none;
    transition: .3s;
}

.input-group input {
    width: 100%;
    height: 60px;
    font-size: 16px;
    color: #01003f;
    padding: 0 10px;
    background: transparent;
    border: 1.5px solid #C8C8C8;
    outline: none;
    border-radius: 5px;
}

.input-group input:not(:placeholder-shown)~label,
.input-group input:focus~label {
    top: 2px;
    font-size: 14px;
    color: #7B56E0;
    background: #fff;
}

.input-group input:not(:placeholder-shown),
.input-group input:focus {
    border: 1px solid #7B56E0;
}

.service-name {
    font-size: 26px !important;
    font-weight: bold;
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
    .login-body {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 20px;
    }
    .service-name {
        font-size: 22px !important;
        font-weight: bold;
    }

    .login-section {
        width: 100%;
        max-width: 90%;
        padding: 20px;
        height: auto; /* Adjust height to auto for smaller screens */
    }

    .login-button {
        width: 70% !important;
        height: 40px !important;
        font-size: 16px !important;
        text-align: center !important;
        border: 1px solid #7B56E0;
        background-color: white;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-sizing: border-box;
        cursor: pointer;
    }

    .input-group input {
        height: 50px;
        font-size: 14px;
    }

    .input-group label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-section {
        width: 95%;
        padding: 15px;
    }

    .login-section h1 {
        font-size: 18px;
    }

    .login-button {
        width: 100%;
    }

    .input-group input {
        height: 45px;
        font-size: 14px;
    }

    .input-group label {
        font-size: 14px;
    }
}
