/* Brand Colors */
:root {
    --brand-electric-violet: #4C00FE;
    --brand-fashion-fuchsia: #E400A0;
    --brand-cobalt-blue: #8EAAD8;
    --brand-mauve: #C9B3FF;
}

body {
    background: linear-gradient(135deg, #fafbff 0%, #fefaff 50%, #fcfbff 100%);
    color: #2d2d2d;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    position: relative;
}

/* Subtle Animated Gradient Background */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(76, 0, 254, 0.03) 0%,
        rgba(228, 0, 160, 0.02) 50%,
        rgba(142, 170, 216, 0.03) 100%
    );
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    z-index: 0;
}

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

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 1;
    position: relative;
}

.login-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(76, 0, 254, 0.15);
    box-shadow: 0 8px 32px rgba(76, 0, 254, 0.08),
                0 16px 64px rgba(76, 0, 254, 0.05),
                0 4px 16px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 90px;
    height: 90px;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--brand-electric-violet), var(--brand-fashion-fuchsia));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(76, 0, 254, 0.2);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    color: #2d2d2d;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--brand-electric-violet);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(76, 0, 254, 0.1);
}

.input-group input::placeholder {
    color: rgba(76, 0, 254, 0.4);
}

button {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--brand-electric-violet);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
}

button:hover {
    background: #3d00cc;
}

.error {
    color: #ff8ca5;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 140, 165, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 140, 165, 0.3);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-form {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

    h2 {
        font-size: 1.5rem;
    }
}
