@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
*
{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  min-height: 100vh;
  background: url(case.jpg) no-repeat;
  background-size: 100%; /* Initial background size */
  background-position: center;
  animation: zoomInOut 30s infinite alternate; /* Adjust the duration as needed */
}


@keyframes zoomInOut {
  0% {
    background-size: 100%; /* Start with the initial size */
  }
  50% {
    background-size: 120%; /* Zoom in to 120% halfway through the animation */
  }
  100% {
    background-size: 100%; /* Return to the initial size at the end */
  }
}

.login
{
	position: relative;
	width: 380px;
	height: 90vh;
	padding: 80px 50px 50px;
	box-shadow: 15px 15px 20px rgba(0, 0, 0, 0.10), 
	-15px -15px 20px #fffb;
	border-radius: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 20px;
	background: rgba(237, 241, 244, 0.8);
	margin: 5px 0px;
}
.login form
{
	position: relative;
	width: 100%;
}
.login form h2
{
	font-size: 2em;
	margin-bottom: 30px;
	line-height: 0.9em;
}
.login form h2 span
{
	font-weight: 300;
	font-size: 0.65em;
}
.login form .inputBox
{
	position: relative;
	display: flex;
}
.login form .inputBox input 
{
	border: none;
	outline: none;
	background: transparent;
	border-radius: 10px;
	font-size: 1em;
}
.login form .inputBox input[type="text"],
.login form .inputBox input[type="password"]
{
	width: 100%;
	padding: 15px 20px;
	padding-left: 40px;
	margin-bottom: 20px;
	box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.10),
	inset -5px -5px 10px #fff;
}
.login form .inputBox input[type="text"]:hover,
.login form .inputBox input[type="password"]:hover,
.login form .inputBox input[type="submit"]:hover {
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15),
        -5px -5px 15px rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.3s ease-in-out;
}
.login form .inputBox input i
{
	position: absolute;
	left: 20px;
	top: 25px;
}
.login form label
{
	display: flex;
	align-items: center;
}
.login form input[type="checkbox"]
{
	margin-right: 5px;
}
.login form .inputBox input[type="submit"] {
    margin: 20px auto; /* Center the button horizontally */
    display: block; /* Ensures margin auto works */
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.10),
        -5px -5px 10px #fff;
    width: 60%;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
}

.login form .inputBox input[type="submit"]:hover
{
	box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.10),
	inset -5px -5px 10px #fff;
	color: green;
}
@keyframes animate
{
	0%,100%
	{
		opacity: 1;
	}
	50%
	{
		opacity: 0.5;
	}
}
.inputBox {
    position: relative;
    display: flex;
    align-items: center;
}

.inputBox input {
    border: none;
    outline: none;
    background: transparent;
    border-radius: 10px;
    font-size: 1em;
    padding: 15px 20px;
    padding-left: 45px; /* Add space for the icon */
    margin-bottom: 20px;
    width: 100%;
    box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.10),
        inset -5px -5px 10px #fff;
}

.inputBox i {
    position: absolute;
    right: 15px; /* Position icon inside input */
    top: 1.0rem;
    color: #555;
    font-size: 1.2em;
}

.inputBox input:hover {
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15),
        -5px -5px 15px rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.3s ease-in-out;
}

.inputBox input:focus {
    box-shadow: 0 0 5px #32CD32;
}

.inputBox i:hover {
    color: #32CD32; /* Add hover effect for the icon */
    transition: color 0.3s ease-in-out;
}
.message {
    width: 100%;
    margin: 0;
    padding: 5px;
    border-radius: 10px;
    box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.1),
        inset -5px -5px 10px rgba(255, 255, 255, 0.6);
    background-color: #f8f9fa; /* Light background for visibility */
    color: #dc3545; /* Red text for error messages */
    font-size: 0.9em;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.5s ease-in-out;
}

/* Success message styling */
.message.success {
    color: #28a745; /* Green for success messages */
}

/* Animation for the message */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#sidebar {
    background-color: #343a40;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
}

#sidebar h4 {
    color: #fff;
    text-align: center;
}

.nav-item {
    margin: 10px 0;
}

.nav-link {
    color: #ccc;
    font-size: 16px;
}

.nav-link:hover {
    color: #fff;
    background-color: #007bff;
}

.card {
    border: none;
}

.card-header {
    background-color: #007bff;
    color: white;
}

.card-body {
    background-color: white;
}


@media (max-width: 768px) {
    .login {
        width: 90%;
        padding: 50px 30px;
    }

    .login form h2 {
        font-size: 1.5em;
    }

    .login form h2 span {
        font-size: 0.5em;
    }

    .login form .inputBox input[type="text"],
    .login form .inputBox input[type="password"] {
        font-size: 0.9em;
        padding: 10px 15px;
    }

    .login form .inputBox input[type="submit"] {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .login form h2 {
        font-size: 1.2em;
    }

    .login form .inputBox input[type="text"],
    .login form .inputBox input[type="password"],
    .login form .inputBox input[type="submit"] {
        font-size: 0.8em;
        padding: 8px 10px;
    }
}
