body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: url(https://biodit.com/carsec/CarSec%20-%20Biodit%20Global%20Technology_files/IMG_9181a.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    height: 100vh; /* Use viewport height to fill the screen vertically */
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.form {
    width: 350px;
    min-height: 400px;
    max-width: 350px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    padding: 50px;
    box-sizing: border-box;
    border-radius: 20px;
}

@media screen and (min-width: 321px) and (max-width: 768px) {
    body {
        background-attachment: fixed;
        background-position: center;
    }

    .form {
        position: absolute;
        top: 20%; /* Adjusted top position for smaller screens */
        left: 18%; /* Center horizontally on the screen */
        transform: translateX(0%); /* Center horizontally on the screen */
        width: 65vw; /* Adjusted width for smaller screens */
        min-height: 300px;
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
        padding: 20px; /* Reduced padding for smaller screens */
        box-sizing: border-box;
        border-radius: 20px;
    }

}

@media screen and (max-width: 320px) {
    body {
        background-attachment: fixed;
        background-position: center;
    }

    .form {
        position: absolute;
        top: 19%; /* Adjusted top position for smaller screens */
        left: 50%; /* Center horizontally on the screen */
        transform: translateX(-50%); /* Center horizontally on the screen */
        width: 90vw; /* Adjusted width for smaller screens */
        min-height: 300px;
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
        padding: 20px; /* Reduced padding for smaller screens */
        box-sizing: border-box;
        border-radius: 20px;
    }

}

.form h2 {
    color: #777;
    margin: 0;
    padding: 0;
    font-weight: bold;
    font-size: 20px;
}

.form .input-box {
    margin: 15px 0;
}

.form .input-box input {
    width: 100%;
    font-size: 14px;
    border: none;
    border-bottom: 2px solid #777;
    border-radius: 12px;
    outline: none;
    padding: 10px;
    padding-left: 7px;
    box-sizing: border-box;
    font-weight: bold;
    color: #777;
    background-color: rgba(255, 255, 255, 0.9);
}

.form .input-box input:focus,
.form .input-box input:valid {
    border-bottom-color: #006987;
}

.form .input-box .fa {
    position: absolute;
    top: 10px;
    left: 5px;
    font-size: 18px;
    color: #777;
}

.form .input-box input[type="submit"] {
    border: none;
    cursor: pointer;
    background-color: #006987;
    color: #fff;
    font-weight: bold;
    transition: 0.5s;
    padding: 12px 20px;
    border-radius: 12px;
}

.form .input-box input[type="submit"]:hover {
    background-color: #003544;
}

.form a {
    text-decoration: none;
    color: #777;
    margin-top: 0px;
    font-weight: bold;
    display: inline-block;
    transition: 0.5s;
}

.form a:hover {
    color: #006987;
}

/* TODO: fix it properly */
.alert-success {
    font-weight: bold;
    color: limegreen;
}

.alert-danger {
    font-weight: bold;
    color: rgba(225, 23, 23, 0.9);
}

/* Center the image */
.logo-img {
    max-width: 100%;
    max-height: 200px; /* Adjust the height as needed */
    margin-bottom: 20px; /* Adjust the margin as needed */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Tooltip styling */
.tooltip {
    color: black !important;
    display: none;
    position: relative;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    padding: 5px;
    z-index: 1;
    margin-top: 5px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

.show-tooltip {
    display: block;
}

.language-selector {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px; /* Add some spacing between flags */
}

.language-selector a {
    text-decoration: none;
    display: flex; /* Display links as flex containers */
    align-items: center; /* Center vertically within the link container */
}

.language-selector img {
    width: 32px; /* Adjust the width as needed for your flags */
    height: 32px; /* Adjust the height as needed for your flags */
    border-radius: 4px; /* Add border radius for flag appearance */
    margin: 0; /* Remove margin for precise alignment */
}

/* Style links within the link-container class */
.link-container a {
    text-decoration: none;
    color: #777;
    font-weight: normal;
    display: inline-block;
    transition: 0.5s;
    margin-right: 10px; /* Adjust the margin as needed */
    margin-left: 0px; /* Adjust the margin as needed */
    padding: 5px;
    font-size: 14px;
}

/* Hover effect for links within the link-container class */
.link-container a:hover {
    color: #006987;
}
