/* ==========================================================================
   STYLE FUNKCJONALNE - OKNO LOGOWANIA
   ========================================================================== */

/* Wrapper spajający okno i wyskakujący błąd */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    width: 100%;
    max-width: 450px;
}

.login-window {
    width: 100% !important;
    max-width: 450px !important;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Musi być nad błędem */
}

.login-content {
    width: 100%;
}

.login-content h2 {
    font-size: 2.5rem;
    color: var(--gold-1);
    margin-bottom: 15px;
    text-align: center;
}

.login-content p {
    color: var(--gray-2);
    margin-bottom: 30px;
    text-align: center;
}

.login-extra {
    margin-top: 20px;
    text-align: center;
}

.login-extra a {
    color: var(--gray-2);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.login-extra a:hover {
    color: var(--gold-3);
}

/* Czerwony komunikat wysuwający się spod ramki */
.error-msg {
    background-color: #f84444;
    color: white;
    padding: 15px 20px;
    width: 90%;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0 0 15px 15px;
    z-index: 1; /* Pod oknem logowania */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    
    /* Animacja wysunięcia */
    animation: slideDown 0.5s ease-out forwards;
}

@keyframes slideDown {
    from { 
        transform: translateY(-100%); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}