/* Resetowanie stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Maven Pro', sans-serif;
}

/* Tło całej strony - jaśniejszy niebieski */
body {
    background: linear-gradient(to bottom, #F0F8FF, #E0ECFF); /* BARDZIEJ JASNE */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Pasek górny */
.top-bar {
    width: 100%;
    background: #003366;
    display: flex;
    justify-content: center;  /* Centrowanie logo */
    align-items: center;
    padding: 15px 0;
}

/* Logo na środku */
.logo {
    height: 90px;
}

/* Sekcja logowania */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 50px;
}

/* Stylizacja formularza logowania */
.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 400px;
    animation: fadeIn 1s ease-in-out;
}

/* Animacja fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tytuł */
h2 {
    color: #003366;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Grupowanie inputów */
.input-group {
    text-align: left;
    margin-bottom: 15px;
}

/* Stylizacja inputów */
.input-icon {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 12px;
    padding-left: 40px; /* Ikona wewnątrz pola */
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
    outline: none;
}

/* Ikonki w inputach */
.input-icon i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

/* Efekt focus na input */
.input-field:focus {
    border-color: #003366;
    box-shadow: 0 0 5px rgba(0, 51, 102, 0.5);
}

/* Przycisk logowania */
.login-button {
    width: 100%;
    padding: 14px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.login-button:hover {
    background: #0055A5;
    transform: scale(1.05);
}

/* Link "Zapomniałem hasła" */
.forgot-password {
    display: block;
    margin-top: 15px;
    color: #0055A5;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.flash-messages {
    margin-bottom: 15px;
    text-align: center;
}

.flash-message {
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 5px;
}

.flash-message.danger {
    background-color: #dc3545; /* Czerwony dla błędów */
}
