* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: linear-gradient(135deg, #4158D0, #C850C0, #FFCC70);
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: gradientBG 15s ease infinite;
    background-size: 300% 300%;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

h2 {
    color: #2d3748;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #4158D0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(65, 88, 208, 0.1);
    background-color: #ffffff;
}

input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #4158D0, #C850C0);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

input[type="submit"]:hover {
    background: linear-gradient(45deg, #3147B0, #B440B0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(65, 88, 208, 0.3);
}

input[type="submit"]:active {
    transform: translateY(0);
}

.error-message {
    color: #e53e3e;
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: none;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@media (max-width: 480px) {
    .login-container {
        padding: 24px;
        margin: 16px;
    }
    
    h2 {
        font-size: 24px;
    }
}
