/* /web/static/css/login.css */

/* =========================================================
   LOGIN SCREEN SPECIFICS
========================================================= */

#loginScreen {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Description text above the info box */
#loginScreen p {
    line-height: 1.6;
}

/* =========================================================
   SECURITY INFO BOX
========================================================= */

/* This targets the container holding the "Why log in?" section */
.security-info-box {
    background-color: var(--bg-input);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #45475a;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--text-dim);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}

.security-info-box strong {
    display: block;
    margin-bottom: 10px;
}

.security-info-box ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.6;
}

.security-info-box li {
    margin-bottom: 8px;
}

/* Mobile adjustments for the login container */
@media (max-width: 768px) {
    .container {
        margin: 20px 10px;
        width: calc(100% - 20px);
    }
    
    h1 {
        font-size: 1.6rem;
    }
}

/* =========================================================
   ERROR BOX LOGIC
========================================================= */

/* 💡 FIX: Sorgt dafür, dass die Box standardmäßig unsichtbar bleibt */
.error-hidden {
    display: none !important;
}

/* 💡 FIX: Wird vom JavaScript gesetzt, macht die Box sichtbar und startet die Animation */
.error-visible {
    display: block !important;
    animation: slideIn 0.3s ease-out forwards;
}

#error-box {
    /* Die Animation wird jetzt rein über .error-visible gesteuert */
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}