* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    animation: fadeIn 1s ease-in-out;
    background-image: url("/media/bg.jpg");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    background-color: #455360;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 350px;
    text-align: center;
    transform: translateY(30px);
    animation: slideUp 0.7s ease-out forwards;
}

h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

form label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #ffffff;
}

form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

form input:focus {
    border-color: #3498db;
    outline: none;
}

form button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #2980b9;
}

.error {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 20px;
}

.register-link {
    margin-top: 20px;
    font-size: 14px;
}

.register-link a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #2980b9;
}

/* Remember me section */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #ffffff;
}

.remember-me input {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.remember-me label {
    cursor: pointer;
}

@media (max-width: 768px) {
    body {
        background-image: url("/media/bg.jpg");
        background-color: #000;
    }
}


/* Animation for form container */
@keyframes slideUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation for fade-in effect on body */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}