﻿
/* Default styles */
body {
    margin: 0;
    font-size: 14px;
    font-family: Calibri, sans-serif;
    background-color: white;
    height: 100vh;
    overflow: hidden;
}

.login-container {
    display: flex;
    justify-content: flex-end; /* Initially aligns card to the right */
    align-items: center;
    height: 100%;
    position: relative;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Image/BG_Login.jpg');
    /*background-image: url('../Image/BG_Diwali.jpg');*/
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: background-color 0.5s ease; /* Smooth transition */
}

.login-content {
    width: 20%; /* Initial width */
    padding: 20px;
}

.login-card {
    background-color: white;
    opacity: 0.8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.icon {
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    /*  padding: 12px;*/
    border-radius: 4px;
    border: 1px solid #ccc;
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

#btnlogin:hover {
    background-color: #9e0b15;
}

.logo {
    width: 150px;
    max-width: 100%;
}

.forgot-password {
    text-align: right;
    margin-top: 10px;
    color: red;
}

    .forgot-password a:hover {
        color: red;
        text-decoration: none;
    }
/* Media Queries */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .login-container {
        justify-content: center; /* Center aligns card for tablets and up */
    }

    .login-content {
        width: 80%; /* Adjust width as necessary for smaller screens */
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .login-container {
        justify-content: center; /* Center aligns card for tablets and up */
    }

    .login-content {
        width: 60%; /* Adjust width as necessary for landscape phones and up */
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .login-container {
        justify-content: center; /* Center aligns card for tablets and up */
    }

    .login-content {
        width: 50%; /* Adjust width as necessary for tablets and up */
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .login-container {
        justify-content: center; /* Center aligns card for tablets and up */
        padding-right: 10%;
    }

    .login-content {
        width: 40%; /* Adjust width as necessary for large desktops and up */
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .login-container {
        justify-content: right; /* Center aligns card for desktops and up */
        padding-right: 10%;
    }

    .login-content {
        width: 25%; /* Maintain width for extra large screens */
    }
}
