/*--------------------------------------------------------------------- 
Basic Styling 
---------------------------------------------------------------------*/

/* loader */

/* Loader background covering the whole screen */
.loader_bg {
    position: fixed;
    z-index: 9999; /* Ensure it's on top of all other elements */
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Loader image */
.loader img {
    width: 150px; /* You can adjust this size */
}

.loader_bg {
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader_bg.hidden {
    opacity: 0;
    visibility: hidden;
}

/* loader-ends */


* {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

body {
    color: #333; /* Uniform text color */
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    font-weight: normal;
    background-color: #f0f4f7; /* Single background color */
    height: 100vh; /* Full screen height */
    background-image: url("../images/login_page.jpg");
    background-size: cover;
    align-items: center;
    padding-left: 50px; /* Add padding to move the login box slightly from the edge */
}

/* translator_styling */
.translator{
    display: flex;
    justify-content: right;
    align-items: center;
}

/* Styling for the Agro-pro text on top of the login box */
.logo{
    display: inline-block;
    background-color:rgba(240, 244, 247, 0.8);
    margin-top: 35px;
    border-radius: 10px;
    padding: 5px;
}
.logo a {
    color: #1c1c1b;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    padding:20px;
}

.logo a span {
    color: #6b7908;
}

.logo:hover{
    text-decoration-line: underline;
    text-decoration-thickness: 3px;
}


/* Login box styling */
.login_page {
    display: flex;
    justify-content: flex-start; /* Align the content to the left */
    margin-top: 80px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgba(240, 244, 247, 0.8); /* Semi-transparent background */
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px; /* Restrict the max width of the login box */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.outer_box {
    width: 100%;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between form elements */
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    padding-right: 40px; /* Add padding to the right to make space for the toggle icon */
}

button {
    background-color: #6b7908;
    color: #fff;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

/* registration button */
.btn {
    display: inline-block;
    background-color: #6b7908;
    color: white;
    padding: 3px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    text-align: center;
}

.btn:hover {
    background-color: red;
}


button:hover {
    background-color: red;
    /* padding: 9px; */
}

a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.forget_pass:hover{
    text-decoration: underline;
}

.login_name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 14px;
    margin-top: 20px; /* Adds space between the form and the register text */
}

.footer-text button {
    background-color: transparent;
    color: #6b7908;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

/*----------------------------------------------- 
Password Input and Icon Container 
-----------------------------------------------*/
.password-container {
    position: relative;
    width: 100%;
}

.password-container input[type="password"],
.password-container input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    padding-right: 40px; /* Ensure space for the toggle icon */
}

.toggle-password {
    position: absolute;
    right: 10px; /* Position the icon inside the input */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.toggle-password i {
    font-size: 16px;
    color: #666; /* Icon color */
}

.toggle-password i:hover {
    color: #333; /* Darker icon color on hover */
}

/*----------------------------------------------- 
Responsive Styling 
-----------------------------------------------*/

@media (max-width: 768px) {
    .login_page {
        padding: 20px; /* Reduce padding on smaller screens */
    }

    .outer_box {
        width: 100%;
        max-width: 300px; /* Smaller box width for smaller screens */
    }
}
