/* Reset and basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden; /* Prevents scroll on the animated background */
    background-color: #f4f4f4;
}

/* Background animation */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3a8ddd, #4CAF50, #e91e63, #ffeb3b);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
    z-index: -1; /* Places the animation behind the content */
}

/* Keyframes for gradient animation */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Login container styles */
.login-container {
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    padding: 35px;
    width: 360px;
    text-align: center;
    z-index: 1;
    backdrop-filter: blur(8px); /* Soft blur effect for the background */
}

/* Header with company logo and name */
.login-header {
    margin-bottom: 25px;
}

.login-header .logo {
    width: 90px;
    height: auto;
    transition: transform 0.3s ease;
}

.login-header .logo:hover {
    transform: scale(1.1);
}

.login-header h1 {
    font-size: 24px;
    color: #333333;
    margin-top: 15px;
}

/* Form section */
form {
    display: flex;
    flex-direction: column;
}

h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333333;
}

/* Input field styles */
.input-container {
    position: relative;
    margin-bottom: 20px;
}

.input-container .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.input-container input {
    width: 100%;
    padding: 12px;
    padding-left: 40px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

/* Focus effect */
.input-container input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.7);
}

/* Error message styling */
.error-message {
    color: #ff0000;
    font-size: 14px;
    text-align: left;
    margin-bottom: 10px;
}

/* Login button */
button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

button:hover {
    background-color: #45a049;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Forgot password link */
.forgot-password {
    margin-top: 15px;
}

.forgot-password a {
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #4CAF50;
    text-decoration: underline;
}

/* Footer styles */
footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    z-index: 1;
    border-top: 2px solid #333;
}
