.app-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(108, 92, 231, 0.4));
}
.login-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    animation: logo-glow 8s ease-in-out infinite;
    z-index: 10;
}
.login-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
    margin-top: 50px;
    text-align: center;
}
.premium-glow {
    filter: drop-shadow(0 0 25px rgba(108, 92, 231, 0.5));
    transition: filter 2s ease-in-out, transform 2s ease-in-out;
}
.premium-glow:hover {
    filter: drop-shadow(0 0 45px rgba(108, 92, 231, 0.8)) brightness(1.2);
    transform: scale(1.05);
}
/* Ensure the login logo maintains its centering while hovering */
.login-logo.premium-glow:hover {
    transform: translateX(-50%) scale(1.05);
}
@keyframes logo-glow {
    0%, 100% { filter: drop-shadow(0 0 25px rgba(108, 92, 231, 0.4)); }
    50% { filter: drop-shadow(0 0 65px rgba(108, 92, 231, 0.8)); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 🕵️ EASTER EGG: CREATOR SIGNATURE REVEAL */
.creator-signature-egg {
    position: absolute;
    bottom: -12px;
    left: 2px;
    font-size: 0.55rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.brand-title-container:hover .creator-signature-egg {
    opacity: 0.35;
    transform: translateY(0);
}

/* 📱 MOBILE AUTH REFINEMENTS (Ultra-Compact) */
@media (max-width: 600px) {
    .auth-card {
        padding: 15px 12px !important;
        margin-top: 60px !important;
        border-radius: 12px !important;
    }
    .login-logo {
        width: 100px !important;
        height: 100px !important;
        top: -50px !important;
    }
    .login-brand {
        margin-top: 40px !important;
        margin-bottom: 15px !important;
    }
    .login-brand span {
        font-size: 1.3rem !important;
    }
    .auth-card h3 {
        font-size: 1rem !important;
        margin-bottom: 2px !important;
    }
    .auth-card p {
        font-size: 0.7rem !important;
        margin-bottom: 12px !important;
    }
    .form-group {
        margin-bottom: 10px !important;
    }
    .form-group label {
        font-size: 0.65rem !important;
        margin-bottom: 4px !important;
    }
    .form-group input {
        padding: 8px 10px !important;
        font-size: 0.8rem !important;
    }
    .btn-save {
        padding: 10px !important;
        font-size: 0.85rem !important;
    }
    .auth-legal-footer {
        margin-top: 8px !important;
        padding-top: 8px !important;
    }
}

/* 🌐 CROSS-BROWSER NORMALIZATION (Firefox Fix) */
* {
    line-height: 1.25; /* Explicit normalization */
    -moz-osx-font-smoothing: grayscale;
}

.chat-header {
    flex-shrink: 0 !important;
    min-height: 65px !important;
    height: auto !important; /* Allow internal elements to breathe */
    padding: 10px 15px !important;
}

.modal-header h2 {
    font-size: 18px !important; /* Fixed pixels to avoid Firefox rem scaling bugs */
    line-height: 1.1 !important;
}

.action-btn-sm {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

@-moz-document url-prefix() {
    /* Specific Firefox padding/scale adjustments */
    input, button, select, textarea {
        font-size: 0.95em;
    }
}
/* 👁️ PASSWORD TOGGLE STYLE */
.password-toggle {
    transition: all 0.3s ease;
    user-select: none;
    font-size: 1.1rem;
}
.password-toggle:hover {
    opacity: 1 !important;
    filter: brightness(1.5);
}
