/* ===== Tło z animowanym gradientem i ruchem pionowym ===== */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, #0d1117, #1a1f2b, #0d1117, #1a1f2b);
    background-size: 400% 400%;
    animation: gradientBG 12s ease infinite, backgroundFloat 8s ease-in-out infinite;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientBG {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}
@keyframes backgroundFloat {
    0%, 100% { background-position-y: 0px; }
    50% { background-position-y: 20px; }
}

/* ===== Logo z animacją pulsowania ===== */
.logo {
    text-align: center;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.2s;
}
.logo img {
    max-width: 150px;
    animation: glowPulse 2s infinite ease-in-out;
}
@keyframes glowPulse {
    0% {
        filter: drop-shadow(0 0 5px rgba(0,243,255,0.8)) drop-shadow(0 0 15px rgba(0,94,255,0.6));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(0,243,255,1)) drop-shadow(0 0 25px rgba(0,94,255,0.8));
        transform: scale(1.03);
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(0,243,255,0.8)) drop-shadow(0 0 15px rgba(0,94,255,0.6));
        transform: scale(1);
    }
}

/* ===== Karta logowania (Glassmorphism) ===== */
.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ===== Animacje pól formularza ===== */
.login-card h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.login-card label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #cdd9e5;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}
.login-card label:nth-of-type(1) { animation-delay: 0.9s; }
.login-card label:nth-of-type(2) { animation-delay: 1.3s; }

.login-card input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
    transition: background 0.3s;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}
.login-card input:nth-of-type(1) { animation-delay: 1.1s; }
.login-card input:nth-of-type(2) { animation-delay: 1.5s; }

.login-card input:focus {
    background: rgba(255,255,255,0.2);
    outline: none;
}

.login-card button {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(45deg, #00f3ff, #005eff);
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.9s;
}
.login-card button:hover {
    transform: scale(1.05);
}

/* ===== Błędy logowania ===== */
.error {
    background: rgba(255, 0, 0, 0.3);
    padding: 0.6rem;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ===== Animacje ===== */
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsywność ===== */
@media (max-width: 768px) {
    .login-card {
        padding: 1.5rem;
    }
    .login-card h2 {
        font-size: 1.3rem;
    }
}