/* Zaimportowanie nowoczesnej czcionki */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e1e2f, #252542); /* Mroczne, nowoczesne tło */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

h2 {
    text-align: center;
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

label {
    display: block;
    font-size: 14px;
    color: white;
    margin-bottom: 8px;
    font-weight: 300;
}

/* Pola input z neonowym efektem */
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
}

input[type="text"]:focus, input[type="password"]:focus {
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.8), 0 0 12px rgba(255, 105, 180, 0.5);
    background: rgba(255, 255, 255, 0.3);
}

/* Nowoczesny przycisk z efektem świetlnym */
button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #ff007f, #ff4d00);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* Efekt świetlny na przycisku */
button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.4s ease-in-out;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: scale(1.05);
}

/* Błąd (np. niepoprawne dane logowania) */
p {
    color: #ff4d4d;
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
}
