/* General Styling & Modern Gradient Background */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* Prevents scrollbar from the background */
}

/* Glassmorphism Container */
.container {
    background: rgba(136, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to Home Button */
.back-home-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    text-decoration: none;
    color: #f0f2f5;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-home-btn:hover {
    color: #fff;
    text-decoration: underline;
}

/* Image and Heading */
.login-image {
    width: 90px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

h1 {
    font-size: 28px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Form Styling */
.form-group {
    text-align: left;
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f0f2f5;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 16px;
    background-color: #fff;
    color: #1e88e5;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.login-btn:hover {
    background-color: #f0f2f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 550px) {
    body {
        padding: 20px;
    }
    .container {
        padding: 40px 25px;
    }
    h1 {
        font-size: 24px;
    }
    .back-home-btn {
        top: 20px;
        left: 20px;
    }
}