/* Background and layout */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    overflow: hidden;
    flex-direction: column; /* Allow vertical stacking of the logo and login container */
}

/* Logo styling */
.logo {
    width: 250px; /* Adjust the width to fit your layout */
    margin-top: -100px;
}

/* Container styling */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.login-container:hover {
    transform: translateY(-10px);
}

.login-container h1 {
    font-size: 28px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Input fields */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    font-size: 14px;
    color: #c5c5c5;
    position: absolute;
    top: -18px;
    left: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0 5px;
    border-radius: 4px;
    pointer-events: none;
    transition: color 0.3s;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    padding-left: 1rem;
    font-size: 16px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #333;
    color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #00adb5;
    box-shadow: 0 0 8px rgba(0, 173, 181, 0.5);
}

.form-group input::placeholder {
    color: #888;
}

/* Button */
.login-btn {
    width: 100%;
    padding: 1rem;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #00adb5, #0077b6);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 173, 181, 0.4);
}

.login-btn:hover {
    background: linear-gradient(45deg, #0077b6, #00adb5);
    transform: translateY(-3px);
}

.login-btn:active {
    transform: translateY(1px);
}

/* Error message */
.error-message {
    color: #ff6b6b;
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
    display: none;
}

/* Hover and focus animations */
.form-group input:focus + label {
    color: #00adb5;
}

/* Mobile responsiveness */
@media (max-width: 500px) {
    .login-container {
        padding: 2rem;
    }
    .login-container h1 {
        font-size: 24px;
    }
    .login-btn {
        font-size: 16px;
    }
}
